diff --git a/alertproviders/parksnpeaks.py b/alertproviders/parksnpeaks.py index ad288eb..010d99c 100644 --- a/alertproviders/parksnpeaks.py +++ b/alertproviders/parksnpeaks.py @@ -33,18 +33,24 @@ class ParksNPeaks(HTTPAlertProvider): start_time = datetime.strptime(source_alert["alTime"], "%Y-%m-%d %H:%M:%S").replace( tzinfo=pytz.UTC).timestamp() + sigrefs = [] + # PnP can give us an alert of class "QRP" which is the only one that's not a real SIG in Spothole's list, + # so mask this out if we got it. + if sig != "QRP": + sigrefs = [SIGRef(id=sig_ref, sig=sig, name=sig_ref_name)] + # Convert to our alert format alert = Alert(source=self.name, source_id=source_alert["alID"], dx_calls=[source_alert["CallSign"].upper()], freqs_modes=source_alert["Freq"] + " " + source_alert["MODE"], comment=source_alert["Comments"], - sig_refs=[SIGRef(id=sig_ref, sig=sig, name=sig_ref_name)], + sig_refs=sigrefs, start_time=start_time, is_dxpedition=False) # Log a warning for the developer if PnP gives us an unknown programme we've never seen before - if sig and sig not in ["POTA", "SOTA", "WWFF", "SiOTA", "ZLOTA", "KRMNPA"]: + if sig and sig not in ["POTA", "SOTA", "WWFF", "SiOTA", "ZLOTA", "KRMNPA", "LLOTA", "QRP"]: logging.warning("PNP alert found with sig " + sig + ", developer needs to add support for this!") # If this is POTA, SOTA or WWFF data we already have it through other means, so ignore. Otherwise, add to diff --git a/spotproviders/parksnpeaks.py b/spotproviders/parksnpeaks.py index bac7c99..6b5b573 100644 --- a/spotproviders/parksnpeaks.py +++ b/spotproviders/parksnpeaks.py @@ -57,7 +57,7 @@ class ParksNPeaks(HTTPSpotProvider): sig_refs[0].name = source_spot["actLocation"] # Log a warning for the developer if PnP gives us an unknown programme we've never seen before - if sig not in ["POTA", "SOTA", "WWFF", "SIOTA", "ZLOTA", "KRMNPA"]: + if sig not in ["POTA", "SOTA", "WWFF", "SIOTA", "ZLOTA", "KRMNPA", "LLOTA"]: logging.warning("PNP spot found with sig " + sig + ", developer needs to add support for this!") # Add new spot to the list diff --git a/templates/add_spot.html b/templates/add_spot.html index 7843268..c1b0238 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 d7e7c3e..4dfa4fe 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index f803b83..81ca9ab 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 20f22c1..4e2aeea 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 %}