Browse Source

"enabled" field is gone

pull/7/head
Pēteris Caune 10 years ago
parent
commit
c526515324
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/api/management/commands/sendalerts.py

+ 1
- 1
hc/api/management/commands/sendalerts.py View File

@ -33,7 +33,7 @@ class Command(BaseCommand):
# Gone up? # Gone up?
query = Check.objects query = Check.objects
query = query.filter(alert_after__gt=timezone.now()) query = query.filter(alert_after__gt=timezone.now())
query = query.filter(enabled=True, status="down")
query = query.filter(status="down")
for check in query: for check in query:
check.status = "up" check.status = "up"
check.save() check.save()


Loading…
Cancel
Save