mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-25 00:34:32 +00:00
Allow spots and alerts to have multiple activities #143
This commit is contained in:
@@ -70,7 +70,7 @@ class ParksNPeaks(HTTPSpotProvider):
|
||||
ref_id = source_spot["actSiteID"]
|
||||
|
||||
if activity:
|
||||
spot.activity = activity
|
||||
spot.add_activity(activity)
|
||||
|
||||
if ref_id:
|
||||
activity_refs = [
|
||||
@@ -130,7 +130,7 @@ class ParksNPeaks(HTTPSpotProvider):
|
||||
)
|
||||
ref_id = spot.activity_refs[0].id if spot.activity_refs else ""
|
||||
body = {
|
||||
"actClass": spot.activity or "",
|
||||
"actClass": next((a for a in spot.activities if self.can_submit_spot(a)), ""),
|
||||
"actCallsign": spot.dx_call,
|
||||
"actSite": ref_id,
|
||||
"mode": spot.mode or "",
|
||||
|
||||
Reference in New Issue
Block a user