From b053dd79201eb5fc347038a54fa27e6a6db101b2 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 4 Jan 2023 14:06:09 +0100 Subject: [PATCH] config test --- statistiques/parseStats.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index 16750c9..f2d01df 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -85,8 +85,6 @@ class Stats: tot_part_start = tot_part_end = 0 tot_part_start = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp = {self.startDate} AND key_field = 'total_participants'""")[-1][0] tot_part_end = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp < {self.endDate} AND key_field = 'total_participants'""")[-1][0] - print(tot_part_end) - print(tot_part_start) tot_part = int(tot_part_end) - int(tot_part_start) print(tot_part) @@ -113,6 +111,7 @@ class Stats: consolided[field] = int(line[3]) else: consolided[field] = int(line[3]) + consolided['total_participants'] = tot_part temp_keys = list(consolided.keys()) for k in temp_keys: if 'bytes' in k: