fix: ajout commentaire en titre et bug sur les scores

This commit is contained in:
2026-02-16 11:11:02 +01:00
parent 8a357abe86
commit 0aa765d6a0

View File

@@ -121,7 +121,7 @@ class _ScraperData:
val = cast(str, app_dict.get("value")).rstrip("+").split("-") val = cast(str, app_dict.get("value")).rstrip("+").split("-")
if len(val) > 1 and val[1] != "": 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 val[0]
return None return None
@@ -325,6 +325,7 @@ class Scraper:
with open(filename, "a") as f: with open(filename, "a") as f:
cache: set[str] = set[str]() cache: set[str] = set[str]()
page = 0 page = 0
_ = f.write("Appellation,Robert,Robinson,Suckling,Prix\n")
while True: while True:
page += 1 page += 1