Bring back cleanup thread

This commit is contained in:
Ian Renton
2026-08-13 07:09:27 +01:00
parent bab14bd7ac
commit c913d0bac8
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ class CleanupTimer:
"""Perform cleanup and reschedule next timer"""
try:
for i in list(DATA_STORE.spots.iterkeys()):
for i in list(DATA_STORE.spots.keys()):
try:
spot = DATA_STORE.spots[i]
if spot.expired():
@@ -49,7 +49,7 @@ class CleanupTimer:
except KeyError:
# Must have already been deleted, OK with that
pass
for i in list(DATA_STORE.alerts.iterkeys()):
for i in list(DATA_STORE.alerts.keys()):
try:
alert = DATA_STORE.alerts[i]
if alert.expired():