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