diff --git a/elstat/blueprints/api.py b/elstat/blueprints/api.py index c2083ab..1610894 100644 --- a/elstat/blueprints/api.py +++ b/elstat/blueprints/api.py @@ -61,7 +61,7 @@ def calc_uptime(manager): # get all polls that failed cur.execute(f""" SELECT COUNT(*) FROM {name} - WHERE status = false + WHERE status = 0 """) row = cur.fetchone()