Correction typo

This commit is contained in:
David 2023-01-04 12:59:01 +01:00
parent 9d26ac104d
commit f82ec7a80e

View File

@ -203,9 +203,16 @@ def runMain():
stats = Stats(year,mois) stats = Stats(year,mois)
res = stats.parse() res = stats.parse()
for (k,v) in res.items(): for (k,v) in res.items():
i = STATS_TOT_FIELDS.index(k) if k in STATS_TOT_FIELDS:
fr = STATS_FR_TOT_FIELDS[i] i = STATS_TOT_FIELDS.index(k)
print(f"{fr}={v}") fr = STATS_FR_TOT_FIELDS[i]
print(f"{fr}={v}")
elif k in STATS_MAX_FIELDS:
i = STATS_MAX_FIELDS.index(k)
fr = STATS_FR_MAX_FIELDS[i]
print(f"{fr}={v}")
else:
pass
try: try:
moyenne_part = int(res['total_participants']) / int(res['total_conferences_completed']) moyenne_part = int(res['total_participants']) / int(res['total_conferences_completed'])
moyenne_part = int((moyenne_part + 0.5) * 10) / 10 moyenne_part = int((moyenne_part + 0.5) * 10) / 10