From 8b95449c6f06aac4dcfbac2d16b4434fb91e6fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 29 Jun 2015 20:52:26 +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 f17e0b22..ac5e0fdf 100644 --- a/hc/api/management/commands/sendalerts.py +++ b/hc/api/management/commands/sendalerts.py @@ -22,7 +22,7 @@ class Command(BaseCommand): # Gone down? query = Check.objects query = query.filter(alert_after__lt=timezone.now()) - query = query.filter(enabled=True, status="up") + query = query.filter(status="up") for check in query: check.status = "down" check.save()