Ajout message d'erreur
This commit is contained in:
parent
9f34f102af
commit
b57ab3aff8
@ -85,6 +85,8 @@ class Stats:
|
||||
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
|
||||
if res is None:
|
||||
sys.exit('Traitement en cours, base de données indisponible')
|
||||
for line in res:
|
||||
field = line[2]
|
||||
if field in STATS_TOT_FIELDS:
|
||||
|
Loading…
Reference in New Issue
Block a user