forked from GithubBackups/healthchecks
"enabled" field is gone
This commit is contained in:
parent
ca352cfccb
commit
8b95449c6f
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user