From 325d445f301ff5d6299b955a0bf3574745b6a80f Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sat, 15 Aug 2026 17:04:45 +0100 Subject: [PATCH] how does i math --- providers/sigrefdata/iota.py | 4 ++-- templates/add_spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/providers/sigrefdata/iota.py b/providers/sigrefdata/iota.py index 6a46196..222df24 100644 --- a/providers/sigrefdata/iota.py +++ b/providers/sigrefdata/iota.py @@ -27,8 +27,8 @@ class IOTA(FileDownloadSIGRefDataProvider): if isinstance(data, list): for ref in data: ref_id = ref["refno"] - latitude = float(ref["latitude_min"]) + float(ref["latitude_max"]) / 2.0 - longitude = float(ref["longitude_min"]) + float(ref["longitude_max"]) / 2.0 + latitude = (float(ref["latitude_min"]) + float(ref["latitude_max"])) / 2.0 + longitude = (float(ref["longitude_min"]) + float(ref["longitude_max"])) / 2.0 grid = None try: grid = latlong_to_locator(latitude, longitude, 6) diff --git a/templates/add_spot.html b/templates/add_spot.html index d53da00..1643655 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -76,7 +76,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 38c525e..e7bf8a2 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -84,7 +84,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index b8111e0..7202836 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,8 +76,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 1e7ff9e..177f0ba 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -15,10 +15,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 03b3fca..269ce7e 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index c2ae699..74b511e 100644 --- a/templates/map.html +++ b/templates/map.html @@ -109,8 +109,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 437553a..27c4e54 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -113,8 +113,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 81a692a..02cf8dc 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@ - +