mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-04-29 18:25:58 +00:00
More tweaks for string lat/lons
This commit is contained in:
@@ -337,9 +337,13 @@ class Spot:
|
||||
self.dx_grid = lookup_helper.infer_grid_from_callsign_dxcc(self.dx_call)
|
||||
self.dx_location_source = "DXCC"
|
||||
|
||||
# It looks like we can sometimes get a string into lat/lon, so reject that before we try looking anything up
|
||||
# It looks like we can sometimes get a string into lat/lon, so try to parse as float, reject if not valid
|
||||
if isinstance(self.dx_latitude, str) or isinstance(self.dx_longitude, str):
|
||||
logging.warning("Received strings in lat/lon (" + str(self.dx_latitude) + ", " + str(self.dx_longitude) + ") for call " + self.dx_call + ", rejecting it")
|
||||
try:
|
||||
self.dx_latitude = float(self.dx_latitude)
|
||||
self.dx_longitude = float(self.dx_longitude)
|
||||
except (TypeError, ValueError):
|
||||
logging.warning("Received non-numeric strings in lat/lon (" + str(self.dx_latitude) + ", " + str(self.dx_longitude) + ") for call " + self.dx_call + ", rejecting it")
|
||||
self.dx_latitude = None
|
||||
self.dx_longitude = None
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<p>This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.</p>
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775225976"></script>
|
||||
<script src="/js/common.js?v=1775226769"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-about").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -69,8 +69,8 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775225976"></script>
|
||||
<script src="/js/add-spot.js?v=1775225976"></script>
|
||||
<script src="/js/common.js?v=1775226769"></script>
|
||||
<script src="/js/add-spot.js?v=1775226769"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-add-spot").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -56,8 +56,8 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775225975"></script>
|
||||
<script src="/js/alerts.js?v=1775225975"></script>
|
||||
<script src="/js/common.js?v=1775226769"></script>
|
||||
<script src="/js/alerts.js?v=1775226769"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-alerts").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -62,9 +62,9 @@
|
||||
<script>
|
||||
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
|
||||
</script>
|
||||
<script src="/js/common.js?v=1775225976"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775225976"></script>
|
||||
<script src="/js/bands.js?v=1775225976"></script>
|
||||
<script src="/js/common.js?v=1775226769"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775226769"></script>
|
||||
<script src="/js/bands.js?v=1775226769"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-bands").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -46,10 +46,10 @@
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/tinycolor2@1.6.0/cjs/tinycolor.min.js"></script>
|
||||
|
||||
<script src="https://misc.ianrenton.com/jsutils/utils.js?v=1775225975"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/storage.js?v=1775225975"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/ui-ham.js?v=1775225975"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/geo.js?v=1775225975"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/utils.js?v=1775226769"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/storage.js?v=1775226769"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/ui-ham.js?v=1775226769"></script>
|
||||
<script src="https://misc.ianrenton.com/jsutils/geo.js?v=1775226769"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -189,8 +189,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775225975"></script>
|
||||
<script src="/js/conditions.js?v=1775225975"></script>
|
||||
<script src="/js/common.js?v=1775226769"></script>
|
||||
<script src="/js/conditions.js?v=1775226769"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-conditions").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -70,9 +70,9 @@
|
||||
<script>
|
||||
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
|
||||
</script>
|
||||
<script src="/js/common.js?v=1775225975"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775225975"></script>
|
||||
<script src="/js/map.js?v=1775225975"></script>
|
||||
<script src="/js/common.js?v=1775226768"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775226768"></script>
|
||||
<script src="/js/map.js?v=1775226768"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-map").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -87,9 +87,9 @@
|
||||
<script>
|
||||
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
|
||||
</script>
|
||||
<script src="/js/common.js?v=1775225975"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775225975"></script>
|
||||
<script src="/js/spots.js?v=1775225975"></script>
|
||||
<script src="/js/common.js?v=1775226768"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=1775226768"></script>
|
||||
<script src="/js/spots.js?v=1775226768"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-spots").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
{% end %}
|
||||
@@ -59,8 +59,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/js/common.js?v=1775225975"></script>
|
||||
<script src="/js/status.js?v=1775225975"></script>
|
||||
<script src="/js/common.js?v=1775226769"></script>
|
||||
<script src="/js/status.js?v=1775226769"></script>
|
||||
<script>
|
||||
$(document).ready(function() { $("#nav-link-status").addClass("active"); }); <!-- highlight active page in nav -->
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user