config test

This commit is contained in:
David 2023-01-03 13:00:10 +01:00
parent f8e1c994f8
commit 5fbabd60e9

View File

@ -82,7 +82,6 @@ class Stats:
return octets,unit return octets,unit
def parse(self): def parse(self):
print(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""") res = self.db.dbQuery(f"""SELECT * FROM {dbName} WHERE timestamp > {self.startDate} AND timestamp < {self.endDate} ORDER by id""")
consolided = {} consolided = {}
moy_conf_by_day = 0 moy_conf_by_day = 0
@ -195,7 +194,6 @@ def runMain():
stats = Stats(year,mois) stats = Stats(year,mois)
res = stats.parse() res = stats.parse()
print(dir(res))
for (k,v) in res.items(): for (k,v) in res.items():
i = STATS_TOT_FIELDS.index(k) i = STATS_TOT_FIELDS.index(k)
fr = STATS_FR_TOT_FIELDS[i] fr = STATS_FR_TOT_FIELDS[i]