Improve the way hamsat alerts work, and add the ability to detect satellite names from spot comments. Closes #149

This commit is contained in:
Ian Renton
2026-09-23 22:08:36 +01:00
parent 981fea57ed
commit c26482f06b
15 changed files with 90 additions and 35 deletions
+3 -3
View File
@@ -52,11 +52,11 @@ def get_activity_ref_info(activity_name, ref_id):
if activity_name.upper() == ActivityName.DTMBA:
ref_id = ref_id.replace("-", "").replace(" ", "")
### NO DATA ACTIVITIES ###
### NO REFERENCE ACTIVITIES ###
#
# If the activity is HEMA or BIWOTA, we have no way to either generate useful data or look it up on a
# If the activity doesn't have references, we have no way to either generate useful data or look it up on a
# reference list, so just skip the lookup here.
if activity_name.upper() == ActivityName.HEMA or activity_name.upper() == ActivityName.BIWOTA:
if not activity.has_refs:
return activity_ref
### PROGRAMMATIC DATA GENERATION INSTEAD OF LOOKUPS ###
+1
View File
@@ -163,6 +163,7 @@ class ActivityRefType(str, Enum):
BUILDING = "BUILDING"
REGION = "REGION"
GRID = "GRID"
SATELLITE = "SATELLITE"
TOILET = "TOILET"