Correction typo

This commit is contained in:
David 2023-01-04 13:51:50 +01:00
parent c13818dfb4
commit 61436f00ce

View File

@ -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 = {}