Correction typo
This commit is contained in:
parent
9d26ac104d
commit
f82ec7a80e
@ -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():
|
||||||
|
if k in STATS_TOT_FIELDS:
|
||||||
i = STATS_TOT_FIELDS.index(k)
|
i = STATS_TOT_FIELDS.index(k)
|
||||||
fr = STATS_FR_TOT_FIELDS[i]
|
fr = STATS_FR_TOT_FIELDS[i]
|
||||||
print(f"{fr}={v}")
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user