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 %}