mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-13 16:07:30 +00:00
Bring back cleanup thread
This commit is contained in:
+2
-2
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user