config test

This commit is contained in:
David 2023-01-04 12:52:19 +01:00
parent e7fa6d3473
commit d27d6c805d

View File

@ -85,9 +85,10 @@ class Stats:
res = None res = None
while res is None: while res is None:
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""")
time.sleep(60) if res is None:
if res is None: time.sleep(60)
sys.exit('Traitement en cours, base de données indisponible') #if res is None:
# sys.exit('Traitement en cours, base de données indisponible')
consolided = {} consolided = {}
moy_conf_by_day = 0 moy_conf_by_day = 0