mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-28 18:22: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
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
const ALLOW_UPSTREAM_SPOTTING = {% raw safe_json_dumps(web_ui_options["allow_upstream_spotting"]) %};
|
||||
</script>
|
||||
|
||||
<script src="/static/js/add-spot.js?v=1790516659"></script>
|
||||
<script src="/static/js/add-spot.js?v=1790517301"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-add-spot").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/static/js/alerts.js?v=1790516658"></script>
|
||||
<script src="/static/js/alerts.js?v=1790517301"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-alerts").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -82,8 +82,8 @@
|
||||
const BANDS = {% raw safe_json_dumps(options["bands"]) %};
|
||||
</script>
|
||||
|
||||
<script src="/static/js/spotsbandsandmap.js?v=1790516658"></script>
|
||||
<script src="/static/js/bands.js?v=1790516658"></script>
|
||||
<script src="/static/js/spotsbandsandmap.js?v=1790517301"></script>
|
||||
<script src="/static/js/bands.js?v=1790517301"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-bands").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
{% extends "skeleton.html" %}
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/css/style.css?v=1790516658" type="text/css">
|
||||
<link rel="stylesheet" href="/static/css/style.css?v=1790517300" type="text/css">
|
||||
<link href="/static/vendor/css/bootstrap-5.3.8.min.css" rel="stylesheet">
|
||||
<link href="/static/vendor/css/fontawesome-6.7.2.min.css" rel="stylesheet">
|
||||
<link href="/static/vendor/css/solid-6.7.2.min.css" rel="stylesheet">
|
||||
@@ -16,10 +16,10 @@
|
||||
window.fetchEventSource = fetchEventSource;
|
||||
</script>
|
||||
|
||||
<script src="/static/js/utils.js?v=1790516658"></script>
|
||||
<script src="/static/js/ui-ham.js?v=1790516658"></script>
|
||||
<script src="/static/js/geo.js?v=1790516658"></script>
|
||||
<script src="/static/js/common.js?v=1790516658"></script>
|
||||
<script src="/static/js/utils.js?v=1790517300"></script>
|
||||
<script src="/static/js/ui-ham.js?v=1790517300"></script>
|
||||
<script src="/static/js/geo.js?v=1790517300"></script>
|
||||
<script src="/static/js/common.js?v=1790517300"></script>
|
||||
{% end %}
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
|
||||
@@ -284,7 +284,7 @@
|
||||
</div>
|
||||
|
||||
<script src="/static/vendor/js/chart-4.4.9.umd.min.js"></script>
|
||||
<script src="/static/js/conditions.js?v=1790516658"></script>
|
||||
<script src="/static/js/conditions.js?v=1790517300"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-conditions").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
+2
-2
@@ -115,8 +115,8 @@
|
||||
const CARTODB_API_KEY = "{{ web_ui_options.get('cartodb_api_key', '') }}";
|
||||
</script>
|
||||
|
||||
<script src="/static/js/spotsbandsandmap.js?v=1790516657"></script>
|
||||
<script src="/static/js/map.js?v=1790516657"></script>
|
||||
<script src="/static/js/spotsbandsandmap.js?v=1790517300"></script>
|
||||
<script src="/static/js/map.js?v=1790517300"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-map").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -127,8 +127,8 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/static/js/spotsbandsandmap.js?v=1790516657"></script>
|
||||
<script src="/static/js/spots.js?v=1790516657"></script>
|
||||
<script src="/static/js/spotsbandsandmap.js?v=1790517300"></script>
|
||||
<script src="/static/js/spots.js?v=1790517300"></script>
|
||||
<script>$(document).ready(function () {
|
||||
$("#nav-link-spots").addClass("active");
|
||||
}); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/static/js/status.js?v=1790516658"></script>
|
||||
<script src="/static/js/status.js?v=1790517301"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#nav-link-status").addClass("active");
|
||||
|
||||
Reference in New Issue
Block a user