Be explicit about can_submit_spot methods

This commit is contained in:
Ian Renton
2026-09-27 14:55:00 +01:00
parent 62976cba1f
commit d79c89c74a
14 changed files with 42 additions and 15 deletions
+4
View File
@@ -83,3 +83,7 @@ class APRSIS(SpotProvider):
except Exception:
logger.exception("Exception handling APRS-IS packet")
# Sending spots to APRS-IS from Spothole doesn't really make sense
def can_submit_spot(self, activity):
return False
+4
View File
@@ -50,3 +50,7 @@ class LLOTA(HTTPSpotProvider):
# that for us.
new_spots.append(spot)
return new_spots
# As far as I know as of September 2026, there is no spot submission API for LLOTA.
def can_submit_spot(self, activity):
return False
+5
View File
@@ -52,3 +52,8 @@ class RBN(TelnetSpotProvider):
comment=match.group(4).strip(),
time=spot_datetime.timestamp(),
)
# Sending spots to RBN from Spothole doesn't really make sense
def can_submit_spot(self, activity):
return False
+4
View File
@@ -47,3 +47,7 @@ class Towers(HTTPSpotProvider):
# that for us.
new_spots.append(spot)
return new_spots
# As far as I know as of September 2026, there is no spot submission API for Towers on the Air.
def can_submit_spot(self, activity):
return False
+4
View File
@@ -104,3 +104,7 @@ class UKPacketNet(HTTPSpotProvider):
spot.dx_longitude = nodes[spot.dx_call]["location"]["coords"]["lon"]
return new_spots
# Sending spots to UK Packet Network from Spothole doesn't really make sense
def can_submit_spot(self, activity):
return False
+6
View File
@@ -58,3 +58,9 @@ class XOTA(WebsocketSpotProvider):
qrt=source_spot["state"] != "active",
)
return spot
# I haven't investigated whether xOTA has a spot submission API, but as we only use it for
# Toilets on the air currently, and realistically no-one is entering their Toilet spots using
# Spothole, this is very low priority.
def can_submit_spot(self, activity):
return False