Browse Source

"enabled" field is gone

pull/7/head
Pēteris Caune 10 years ago
parent
commit
8b95449c6f
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

@ -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()


Loading…
Cancel
Save