Correction typo

This commit is contained in:
David 2023-01-04 12:59:01 +01:00
parent 9d26ac104d
commit f82ec7a80e
1 changed files with 10 additions and 3 deletions

View File

@ -203,9 +203,16 @@ def runMain():
stats = Stats(year,mois)
res = stats.parse()
for (k,v) in res.items():
i = STATS_TOT_FIELDS.index(k)
fr = STATS_FR_TOT_FIELDS[i]
print(f"{fr}={v}")
if k in STATS_TOT_FIELDS:
i = STATS_TOT_FIELDS.index(k)
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:
moyenne_part = int(res['total_participants']) / int(res['total_conferences_completed'])
moyenne_part = int((moyenne_part + 0.5) * 10) / 10