mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-29 02:32:05 +00:00
Support PARC references #156
This commit is contained in:
@@ -248,6 +248,17 @@ ACTIVITIES: dict[ActivityName, Activity] = {
|
||||
comment_names=[],
|
||||
icon="fa-square",
|
||||
),
|
||||
ActivityName.PARC: Activity(
|
||||
name=ActivityName.PARC,
|
||||
description="Protected Area Radio Community",
|
||||
activity_type=ActivityType.ADVENTURE,
|
||||
has_refs=True,
|
||||
refs_globally_unique=True,
|
||||
ref_type=ActivityRefType.PARK,
|
||||
ref_regex=r"[A-Za-z]{2}-[A-Za-z]{2,3}-[0-9]{4}",
|
||||
comment_names=["PARC"],
|
||||
icon="fa-pagelines",
|
||||
),
|
||||
ActivityName.ZLOTA: Activity(
|
||||
name=ActivityName.ZLOTA,
|
||||
description="New Zealand on the Air",
|
||||
|
||||
+1
-1
@@ -382,7 +382,7 @@ class Spot:
|
||||
if mode_tag and not self.propagation_mode:
|
||||
if mode_tag in PROPAGATION_MODES:
|
||||
self.propagation_mode = PROPAGATION_MODES[mode_tag]
|
||||
else:
|
||||
elif mode_tag != "?":
|
||||
self.propagation_mode = mode_tag
|
||||
logger.info(f"Seen a new propagation mode tag not yet in the system: {mode_tag}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user