From c526515324a76584117abcc0d3056c1a6443689f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 29 Jun 2015 20:59:14 +0300 Subject: [PATCH] "enabled" field is gone --- hc/api/management/commands/sendalerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hc/api/management/commands/sendalerts.py b/hc/api/management/commands/sendalerts.py index ac5e0fdf..f27f00bf 100644 --- a/hc/api/management/commands/sendalerts.py +++ b/hc/api/management/commands/sendalerts.py @@ -33,7 +33,7 @@ class Command(BaseCommand): # Gone up? query = Check.objects query = query.filter(alert_after__gt=timezone.now()) - query = query.filter(enabled=True, status="down") + query = query.filter(status="down") for check in query: check.status = "up" check.save()