From 0aa765d6a0d70947ed6c84b5040dd5d8e83e6c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Mon, 16 Feb 2026 11:11:02 +0100 Subject: [PATCH] fix: ajout commentaire en titre et bug sur les scores --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c548eb2..6549eab 100644 --- a/main.py +++ b/main.py @@ -121,7 +121,7 @@ class _ScraperData: val = cast(str, app_dict.get("value")).rstrip("+").split("-") if len(val) > 1 and val[1] != "": - val[0] = str((int(val[0]) + int(val[1])) / 2) + val[0] = str(round((float(val[0]) + float(val[1])) / 2, 1)) return val[0] return None @@ -325,6 +325,7 @@ class Scraper: with open(filename, "a") as f: cache: set[str] = set[str]() page = 0 + _ = f.write("Appellation,Robert,Robinson,Suckling,Prix\n") while True: page += 1