Fix bugs in GMA and WWBOTA providers

This commit is contained in:
Ian Renton
2026-08-15 13:59:52 +01:00
parent fe4826b729
commit ae1f752516
10 changed files with 23 additions and 23 deletions
+7 -7
View File
@@ -135,23 +135,23 @@ class GMA(HTTPSpotProvider):
spot.sig_refs[0].sig = ref_info["reftype"]
spot.sig = ref_info["reftype"]
# Add to our list. Don't worry about de-duping, removing old spots etc. at this point;
# other code will do that for us.
new_spots.append(spot)
elif not ref_response.from_cache:
if not ref_response.ok:
logger.warning(
f"HTTP {ref_response.status_code} when looking up GMA ref {source_spot['REF']}"
)
else:
logger.warning(
f"GMA API returned a malformed response when looking up ref {source_spot['REF']}"
logger.debug(
f"GMA API had no data for {source_spot['REF']}, it may not be a valid reference."
)
except Exception:
logger.exception(
f"Exception when looking up {self.REF_INFO_URL_ROOT}{source_spot['REF']}, ignoring this spot for now"
f"Exception when looking up {self.REF_INFO_URL_ROOT}{source_spot['REF']}, SIG data will not be populated for the spot."
)
# Add to our list. Don't worry about de-duping, removing old spots etc. at this point;
# other code will do that for us.
new_spots.append(spot)
else:
logger.warning(f"The GMA API returned an unexpected response (HTTP {http_response.status_code}).")
+1 -1
View File
@@ -34,7 +34,7 @@ class WWBOTA(SSESpotProvider):
dx_call=source_spot["call"].upper(),
de_call=source_spot["spotter"].upper(),
freq=float(source_spot["freq"]) * 1000000,
mode=source_spot["mode"].upper(),
mode=source_spot["mode"].upper() if "mode" in source_spot else None,
comment=source_spot["comment"],
sig="WWBOTA",
sig_refs=refs,
+1 -1
View File
@@ -76,7 +76,7 @@
</div>
<script src="/static/js/add-spot.js?v=1786791760"></script>
<script src="/static/js/add-spot.js?v=1786798792"></script>
<script>$(document).ready(function () {
$("#nav-link-add-spot").addClass("active");
}); <!-- highlight active page in nav --></script>
+1 -1
View File
@@ -84,7 +84,7 @@
</div>
<script src="/static/js/alerts.js?v=1786791760"></script>
<script src="/static/js/alerts.js?v=1786798792"></script>
<script>$(document).ready(function () {
$("#nav-link-alerts").addClass("active");
}); <!-- highlight active page in nav --></script>
+2 -2
View File
@@ -76,8 +76,8 @@
</div>
<script src="/static/js/spotsbandsandmap.js?v=1786791760"></script>
<script src="/static/js/bands.js?v=1786791760"></script>
<script src="/static/js/spotsbandsandmap.js?v=1786798792"></script>
<script src="/static/js/bands.js?v=1786798792"></script>
<script>$(document).ready(function () {
$("#nav-link-bands").addClass("active");
}); <!-- highlight active page in nav --></script>
+5 -5
View File
@@ -1,6 +1,6 @@
{% extends "skeleton.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/css/style.css?v=1786791760" type="text/css">
<link rel="stylesheet" href="/static/css/style.css?v=1786798792" 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">
@@ -15,10 +15,10 @@
window.fetchEventSource = fetchEventSource;
</script>
<script src="/static/js/utils.js?v=1786791760"></script>
<script src="/static/js/ui-ham.js?v=1786791760"></script>
<script src="/static/js/geo.js?v=1786791760"></script>
<script src="/static/js/common.js?v=1786791760"></script>
<script src="/static/js/utils.js?v=1786798792"></script>
<script src="/static/js/ui-ham.js?v=1786798792"></script>
<script src="/static/js/geo.js?v=1786798792"></script>
<script src="/static/js/common.js?v=1786798792"></script>
{% end %}
{% block body %}
<div class="container">
+1 -1
View File
@@ -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=1786791760"></script>
<script src="/static/js/conditions.js?v=1786798792"></script>
<script>$(document).ready(function () {
$("#nav-link-conditions").addClass("active");
}); <!-- highlight active page in nav --></script>
+2 -2
View File
@@ -109,8 +109,8 @@
<script src="/static/vendor/js/leaflet-cqzones.js"></script>
<script src="/static/vendor/js/leaflet-workedallbritainireland.js" type="module"></script>
<script src="/static/js/spotsbandsandmap.js?v=1786791760"></script>
<script src="/static/js/map.js?v=1786791760"></script>
<script src="/static/js/spotsbandsandmap.js?v=1786798792"></script>
<script src="/static/js/map.js?v=1786798792"></script>
<script>$(document).ready(function () {
$("#nav-link-map").addClass("active");
}); <!-- highlight active page in nav --></script>
+2 -2
View File
@@ -113,8 +113,8 @@
</div>
<script src="/static/js/spotsbandsandmap.js?v=1786791760"></script>
<script src="/static/js/spots.js?v=1786791760"></script>
<script src="/static/js/spotsbandsandmap.js?v=1786798792"></script>
<script src="/static/js/spots.js?v=1786798792"></script>
<script>$(document).ready(function () {
$("#nav-link-spots").addClass("active");
}); <!-- highlight active page in nav --></script>
+1 -1
View File
@@ -86,7 +86,7 @@
</div>
</div>
<script src="/static/js/status.js?v=1786791760"></script>
<script src="/static/js/status.js?v=1786798792"></script>
<script>
$(document).ready(function () {
$("#nav-link-status").addClass("active");