From 335d15bfa08989943479a08ca7e07df4c5fd21b5 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sat, 15 Aug 2026 08:50:03 +0100 Subject: [PATCH] More ruff linter fixes --- .idea/Spothole.iml | 2 +- server/handlers/api/dxstats.py | 2 +- 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 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.idea/Spothole.iml b/.idea/Spothole.iml index 0674d3f..e1bbe67 100644 --- a/.idea/Spothole.iml +++ b/.idea/Spothole.iml @@ -2,7 +2,7 @@ - + diff --git a/server/handlers/api/dxstats.py b/server/handlers/api/dxstats.py index 239088f..e452e68 100644 --- a/server/handlers/api/dxstats.py +++ b/server/handlers/api/dxstats.py @@ -47,7 +47,7 @@ class APIDxStatsHandler(tornado.web.RequestHandler): one_hour_ago = (datetime.now(pytz.UTC) - timedelta(hours=1)).timestamp() counts = Counter() - for key in self._spots: + for key in self._spots.keys(): spot = self._spots.get(key) if spot is None: continue diff --git a/templates/add_spot.html b/templates/add_spot.html index def3887..fa453e0 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 46cbe2c..d1f0b23 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -82,7 +82,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index 8072c1f..e728a2a 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -79,8 +79,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index b5c2b1a..14b4745 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -15,10 +15,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index dcb8c0e..c328769 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 59d3276..d54fdee 100644 --- a/templates/map.html +++ b/templates/map.html @@ -112,8 +112,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 1f0311c..2f7484e 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -118,8 +118,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 544e8eb..bd72a47 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@ - +