Get ZLOTA spots from its own API rather than PnP. Closes #37

This commit is contained in:
Ian Renton
2025-10-23 08:47:00 +01:00
parent 65d83d2339
commit 5d4b3d500d
5 changed files with 69 additions and 20 deletions

View File

@@ -49,7 +49,8 @@ class ParksNPeaks(HTTPAlertProvider):
logging.warn("PNP alert found with sig " + alert.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
# the alert list.
# the alert list. Note that while ZLOTA has its own spots API, it doesn't have its own alerts API. So that
# means the PnP *spot* provider rejects ZLOTA spots here, but the PnP *alerts* provider here allows ZLOTA.
if alert.sig not in ["POTA", "SOTA", "WWFF"]:
new_alerts.append(alert)
return new_alerts