From 806ec3076091b973506425549274179cd42ade3a Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sat, 4 Oct 2025 16:30:28 +0100 Subject: [PATCH] Fix a bug with handling Parks n Peaks spots with frequencies in the GHz --- providers/parksnpeaks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/parksnpeaks.py b/providers/parksnpeaks.py index 64f7438..471f9d9 100644 --- a/providers/parksnpeaks.py +++ b/providers/parksnpeaks.py @@ -24,7 +24,7 @@ class ParksNPeaks(HTTPProvider): source_id=source_spot["actID"], dx_call=source_spot["actCallsign"].upper(), de_call=source_spot["actSpoter"].upper(), # typo exists in API - freq=float(source_spot["actFreq"]) * 1000000 if (source_spot["actFreq"] != "") else None, # Seen PNP spots with empty frequency! + freq=float(source_spot["actFreq"].replace(",", "")) * 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"], sig=source_spot["actClass"],