config test
This commit is contained in:
parent
f2e0706a39
commit
b053dd7920
@ -85,8 +85,6 @@ class Stats:
|
|||||||
tot_part_start = tot_part_end = 0
|
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_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]
|
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)
|
tot_part = int(tot_part_end) - int(tot_part_start)
|
||||||
print(tot_part)
|
print(tot_part)
|
||||||
|
|
||||||
@ -113,6 +111,7 @@ class Stats:
|
|||||||
consolided[field] = int(line[3])
|
consolided[field] = int(line[3])
|
||||||
else:
|
else:
|
||||||
consolided[field] = int(line[3])
|
consolided[field] = int(line[3])
|
||||||
|
consolided['total_participants'] = tot_part
|
||||||
temp_keys = list(consolided.keys())
|
temp_keys = list(consolided.keys())
|
||||||
for k in temp_keys:
|
for k in temp_keys:
|
||||||
if 'bytes' in k:
|
if 'bytes' in k:
|
||||||
|
Loading…
Reference in New Issue
Block a user