store last 24 hours worth of checks

pull/13/head
lza_menace 3 years ago
parent f55dc9e893
commit 98c379d2b6

@ -133,7 +133,7 @@ def add():
return redirect("/")
def cleanup_health_checks():
diff = datetime.now() - timedelta(hours=2)
diff = datetime.now() - timedelta(hours=24)
checks = HealthCheck.select().where(HealthCheck.datetime <= diff)
for check in checks:
print("Deleting check", check.id)

Loading…
Cancel
Save