config test
This commit is contained in:
parent
61436f00ce
commit
7d93cb761f
@ -83,10 +83,10 @@ class Stats:
|
|||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
tot_part_start = tot_part_end = 0
|
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'""")
|
tot_part_stat = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp = {self.startDate} AND key_field = 'total_participants'""")[-1][0]
|
||||||
print(res)
|
tot_part_end = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp < {self.endDate} AND key_field = 'total_participants'""")[-1][0]
|
||||||
res = self.db.dbQuery(f"""SELECT value_field FROM {dbName} WHERE timestamp < {self.endDate} AND key_field = 'total_participants'""")
|
tot_part = int(tot_part_end) - int(tot_part_start)
|
||||||
print(res[-1])
|
print(tot_part)
|
||||||
|
|
||||||
res = self.db.dbQuery(f"""SELECT * FROM {dbName} WHERE timestamp > {self.startDate} AND timestamp < {self.endDate} ORDER by id""")
|
res = self.db.dbQuery(f"""SELECT * FROM {dbName} WHERE timestamp > {self.startDate} AND timestamp < {self.endDate} ORDER by id""")
|
||||||
consolided = {}
|
consolided = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user