config test
This commit is contained in:
parent
f8e1c994f8
commit
5fbabd60e9
@ -82,7 +82,6 @@ class Stats:
|
||||
return octets,unit
|
||||
|
||||
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""")
|
||||
consolided = {}
|
||||
moy_conf_by_day = 0
|
||||
@ -195,7 +194,6 @@ def runMain():
|
||||
|
||||
stats = Stats(year,mois)
|
||||
res = stats.parse()
|
||||
print(dir(res))
|
||||
for (k,v) in res.items():
|
||||
i = STATS_TOT_FIELDS.index(k)
|
||||
fr = STATS_FR_TOT_FIELDS[i]
|
||||
|
Loading…
Reference in New Issue
Block a user