Correction typo

This commit is contained in:
David 2023-01-03 12:59:29 +01:00
parent faaf953bf6
commit f8e1c994f8

View File

@ -207,7 +207,7 @@ def runMain():
print(f"Moyenne participants par conference={moyenne_part}") print(f"Moyenne participants par conference={moyenne_part}")
except: except:
pass pass
if res.has_key('total_conference_time'): if 'total_conference_time' in res:
moyenne_duree = float(res['total_conference_time'].split()[0]) * 60 / int(res['total_conferences_completed']) moyenne_duree = float(res['total_conference_time'].split()[0]) * 60 / int(res['total_conferences_completed'])
moyenne_duree = int((moyenne_duree + 0.5) * 10) / 10 moyenne_duree = int((moyenne_duree + 0.5) * 10) / 10
else: else: