From fa92657d9cfd72c2ea2e90f0132f661c2a9e09ea Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sat, 1 Nov 2025 17:25:20 +0000 Subject: [PATCH] Fix old alerts not getting deleted --- core/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cleanup.py b/core/cleanup.py index dd3d6ff..b95624e 100644 --- a/core/cleanup.py +++ b/core/cleanup.py @@ -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)