diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index 83f6fd3..8e72deb 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -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()