Fix a bug with handling Parks n Peaks spots with frequencies in the GHz

This commit is contained in:
Ian Renton
2025-10-04 16:30:28 +01:00
parent d19ba1d662
commit 806ec30760

View File

@@ -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"],