From c7b61634404db5ace2e77f642200706f5fc1ecf1 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Mon, 6 Jul 2026 17:58:45 +0100 Subject: [PATCH] Extra search and replaces in PNP spot frequencies to cope with a weird one encountered --- spotproviders/parksnpeaks.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/spotproviders/parksnpeaks.py b/spotproviders/parksnpeaks.py index 6b5b573..0a7ea7a 100644 --- a/spotproviders/parksnpeaks.py +++ b/spotproviders/parksnpeaks.py @@ -30,8 +30,8 @@ class ParksNPeaks(HTTPSpotProvider): dx_call=source_spot["actCallsign"].upper(), de_call=source_spot["actSpoter"].upper() if source_spot["actSpoter"] != "" else None, # typo exists in API - freq=float(source_spot["actFreq"].replace(",", "")) * 1000000 if ( - source_spot["actFreq"] != "") else None, + freq=float(source_spot["actFreq"].replace(",", "").replace("+-", "") + .replace("+/-", "").strip()) * 1000000 if (source_spot["actFreq"] != "") else None, # Seen PNP spots with empty frequency, and with comma-separated thousands digits mode=source_spot["actMode"].upper(), comment=source_spot["actComments"], diff --git a/templates/add_spot.html b/templates/add_spot.html index 6c39319..69ce837 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 edc0f76..74ce1fb 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index afa7b3f..f0e7c39 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -75,8 +75,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 9cc6090..0874163 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 9ca3167..3b81962 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 13db931..fede4f6 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 1e41720..d4073d5 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 4bcffb6..7a3c2be 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - +