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