mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Add /AM and /MM activities, fix up activities list in OpenAPI spec, few more About page tweaks. #147
This commit is contained in:
@@ -384,6 +384,13 @@ class Spot:
|
||||
if self.propagation_mode == "Earth-Moon-Earth" and not self.sig:
|
||||
self.sig = "EME"
|
||||
|
||||
# Set activities based on the DX callsign suffix
|
||||
if self.dx_call and not self.sig:
|
||||
if self.dx_call.upper().endswith("/AM"):
|
||||
self.sig = "/AM"
|
||||
elif self.dx_call.upper().endswith("/MM"):
|
||||
self.sig = "/MM"
|
||||
|
||||
# Parse "de_grid -> dx_grid" structures from the comment
|
||||
if self.comment:
|
||||
grid_mode_grid_match = re.search(
|
||||
|
||||
Reference in New Issue
Block a user