mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Extract SIG and SIG_INFO from cluster spots. Closes #47
This commit is contained in:
@@ -21,7 +21,7 @@ SIGS = [
|
||||
SIG(name="MOTA", description="Mills on the Air", icon="fan"),
|
||||
SIG(name="ARLHS", description="Amateur Radio Lighthouse Society", icon="tower-observation"),
|
||||
SIG(name="ILLW", description="International Lighthouse & Lightship Weekend", icon="tower-observation"),
|
||||
SIG(name="SiOTA", description="Silos on the Air", icon="wheat-awn"),
|
||||
SIG(name="SIOTA", description="Silos on the Air", icon="wheat-awn"),
|
||||
SIG(name="WCA", description="World Castles Award", icon="chess-rook"),
|
||||
SIG(name="ZLOTA", description="New Zealand on the Air", icon="kiwi-bird"),
|
||||
SIG(name="KRMNPA", description="Keith Roget Memorial National Parks Award", icon="earth-oceania")
|
||||
|
||||
@@ -5,4 +5,10 @@ def get_icon_for_sig(sig):
|
||||
for s in SIGS:
|
||||
if s.name == sig:
|
||||
return s.icon
|
||||
return "circle-question"
|
||||
return "circle-question"
|
||||
|
||||
# Regex matching any SIG
|
||||
ANY_SIG_REGEX = r"(" + r"|".join(list(map(lambda p: p.name, SIGS))) + r")"
|
||||
|
||||
# Regex matching any SIG reference
|
||||
ANY_SIG_REF_REGEX = r"[\w\/]+\-\d+"
|
||||
Reference in New Issue
Block a user