From d36d3d7449f26da8151980472ee18a3cdb0c1247 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Wed, 8 Aug 2018 17:37:36 -0300 Subject: [PATCH] blueprints.api: quickfix --- elstat/blueprints/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()