From b0ad3c63cd3961edda855998bb2a3320a0477cce Mon Sep 17 00:00:00 2001 From: David <david@delhoume.eu> Date: Sun, 25 Dec 2022 23:43:37 +0100 Subject: [PATCH] config test --- statistiques/parseStats.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index 3a6e23b..b0523f6 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -90,8 +90,11 @@ class Stats: for line in res: field = line[2] if field in STATS_TOT_FIELDS: - if field in consolided and 'total' not in field: - consolided[field] = consolided[field] + int(line[3]) + if field in consolided: + if 'total' not in field: + consolided[field] = consolided[field] + int(line[3]) + else: + consolided[field] = int(line[3]) else: consolided[field] = int(line[3]) if field == 'conferences':