mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Allow QRP spots from PnP APIs #147
This commit is contained in:
@@ -37,11 +37,7 @@ class ParksNPeaks(HTTPAlertProvider):
|
||||
datetime.strptime(source_alert["alTime"], "%Y-%m-%d %H:%M:%S").replace(tzinfo=pytz.UTC).timestamp()
|
||||
)
|
||||
|
||||
activity_refs = []
|
||||
# PnP can give us an alert of class "QRP" which is the only one that's not a real activity in Spothole's
|
||||
# list, so mask this out if we got it.
|
||||
if activity != ActivityName.QRP:
|
||||
activity_refs = [ActivityRef(id=ref_id, sig=activity, name=ref_name)]
|
||||
activity_refs = [ActivityRef(id=ref_id, sig=activity, name=ref_name)]
|
||||
|
||||
# Convert to our alert format
|
||||
alert = Alert(
|
||||
|
||||
Reference in New Issue
Block a user