mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-29 02:32:05 +00:00
Be explicit about can_submit_spot methods
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user