config test

This commit is contained in:
David 2022-12-26 00:10:13 +01:00
parent 4cbda11f7e
commit 28de664b7b

View File

@ -195,11 +195,13 @@ def runMain():
i = STATS_TOT_FIELDS.index(k)
fr = STATS_FR_TOT_FIELDS[i]
print(f"{fr}={v}")
try:
moyenne_part = int(res['total_participants']) / int(res['total_conferences_completed'])
print(f"Moyenne participants par conference,{moyenne_part}")
except:
pass
try:
moyenne_part = int(res['total_participants']) / int(res['total_conferences_completed'])
moyenne_part = int((moyenne_part + 0.5) * 10) / 10
print(f"Moyenne participants par conference,{moyenne_part}")
except:
pass
if __name__ == '__main__':
runMain()