Fix old alerts not getting deleted

This commit is contained in:
Ian Renton
2025-11-01 17:25:20 +00:00
parent 30fc333c8b
commit fa92657d9c

View File

@@ -38,7 +38,7 @@ class CleanupTimer:
for id in list(self.alerts.iterkeys()):
alert = self.alerts[id]
if alert.expired():
self.alerts.evict(id)
self.alerts.delete(id)
self.status = "OK"
self.last_cleanup_time = datetime.now(pytz.UTC)