From c913d0bac83f34367a9de9df97dedd939da838ad Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Thu, 13 Aug 2026 07:09:27 +0100 Subject: [PATCH] Bring back cleanup thread --- core/cleanup.py | 4 ++-- templates/add_spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/core/cleanup.py b/core/cleanup.py index 6ba076a..0a2a3f5 100644 --- a/core/cleanup.py +++ b/core/cleanup.py @@ -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(): diff --git a/templates/add_spot.html b/templates/add_spot.html index f6abd52..2e0683b 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -76,7 +76,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index d7647c3..8cb85d2 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -82,7 +82,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 715404e..1241abf 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -79,8 +79,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index defc5df..6a02ef6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -10,10 +10,10 @@ - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 9c17940..7aaa679 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 5710acf..2a83fc5 100644 --- a/templates/map.html +++ b/templates/map.html @@ -112,8 +112,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index c3fc5ee..35886a4 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -118,8 +118,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 06e7990..1b07921 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@ - +