From 61436f00cecb7c23f4cfa1f4edfda99d7d0e6850 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 4 Jan 2023 13:51:50 +0100 Subject: [PATCH] Correction typo --- statistiques/parseStats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statistiques/parseStats.py b/statistiques/parseStats.py index 14a36a4..411057a 100755 --- a/statistiques/parseStats.py +++ b/statistiques/parseStats.py @@ -84,9 +84,9 @@ class Stats: def parse(self): tot_part_start = tot_part_end = 0 res = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp = {self.startDate} AND key_field = 'total_participants'""") - print(res[-1]) - res = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp < {self.endDate} AND key_field = 'total_participants'""") print(res) + res = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp < {self.endDate} AND key_field = 'total_participants'""") + print(res[-1]) res = self.db.dbQuery(f"""SELECT * FROM {dbName} WHERE timestamp > {self.startDate} AND timestamp < {self.endDate} ORDER by id""") consolided = {}