From f8e1c994f89ef52223c56e6b3dd08a04be2589ec Mon Sep 17 00:00:00 2001 From: David Date: Tue, 3 Jan 2023 12:59:29 +0100 Subject: [PATCH] Correction typo --- statistiques/parseStats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index 244d040..cc44b65 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -207,7 +207,7 @@ def runMain(): print(f"Moyenne participants par conference={moyenne_part}") except: 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 = int((moyenne_duree + 0.5) * 10) / 10 else: