From 11dd8fa77f1741b65664f2b599b457b72ce323c7 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Fri, 3 Apr 2026 09:04:18 +0100 Subject: [PATCH] Apparently I can't code --- data/spot.py | 4 ++-- templates/about.html | 2 +- templates/add_spot.html | 4 ++-- templates/alerts.html | 4 ++-- templates/bands.html | 6 +++--- templates/base.html | 8 ++++---- templates/conditions.html | 4 ++-- templates/map.html | 6 +++--- templates/spots.html | 6 +++--- templates/status.html | 4 ++-- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/data/spot.py b/data/spot.py index fd20e93..1fcaed4 100644 --- a/data/spot.py +++ b/data/spot.py @@ -338,8 +338,8 @@ class Spot: self.dx_location_source = "DXCC" # It looks like we can sometimes get a string into lat/lon, so reject that before we try looking anything up - if type(self.dx_latitude) == "str" or type(self.dx_longitude) == "str": - logging.warning("Received strings in lat/lon (" + str(self.dx_latitude) + ", " + str(self.dx_longitude) + "), rejecting it") + if isinstance(self.dx_latitude, str) or isinstance(self.dx_longitude, str): + logging.warning("Received strings in lat/lon (" + str(self.dx_latitude) + ", " + str(self.dx_longitude) + ") for call " + self.dx_call + ", rejecting it") self.dx_latitude = None self.dx_longitude = None diff --git a/templates/about.html b/templates/about.html index ab24aac..0c57d1a 100644 --- a/templates/about.html +++ b/templates/about.html @@ -67,7 +67,7 @@

This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.

- + {% end %} \ No newline at end of file diff --git a/templates/add_spot.html b/templates/add_spot.html index 903a75d..dd016b2 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -69,8 +69,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/alerts.html b/templates/alerts.html index dcd092b..0380263 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -56,8 +56,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/bands.html b/templates/bands.html index 1d677fa..8509469 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -62,9 +62,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index a47a1ff..8d3a288 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,10 +46,10 @@ crossorigin="anonymous"> - - - - + + + + diff --git a/templates/conditions.html b/templates/conditions.html index 092ebcf..6ce33b0 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -189,8 +189,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/map.html b/templates/map.html index 263dfeb..bb27a3b 100644 --- a/templates/map.html +++ b/templates/map.html @@ -70,9 +70,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/spots.html b/templates/spots.html index c936cc0..f044061 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -87,9 +87,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/status.html b/templates/status.html index a40855b..b7b938f 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,8 +59,8 @@ - - + +