mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-03-15 08:36:31 -04:00
store last 24 hours worth of checks
This commit is contained in:
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…
x
Reference in New Issue
Block a user