From b313735e28c5924913c827abd7728cac2a415fe2 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sun, 2 Nov 2025 20:38:30 +0000 Subject: [PATCH] Add missing break statements --- core/sig_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/sig_utils.py b/core/sig_utils.py index f71ebcf..3d7ae43 100644 --- a/core/sig_utils.py +++ b/core/sig_utils.py @@ -79,6 +79,7 @@ def get_sig_ref_info(sig, sig_ref_id): sig_ref.grid = row["iaruLocator"] if "iaruLocator" in row else None sig_ref.latitude = float(row["latitude"]) if "latitude" in row else None sig_ref.longitude = float(row["longitude"]) if "longitude" in row else None + break elif sig.upper() == "SIOTA": siota_csv_data = SEMI_STATIC_URL_DATA_CACHE.get("https://www.silosontheair.com/data/silos.csv", headers=HTTP_HEADERS) @@ -89,6 +90,7 @@ def get_sig_ref_info(sig, sig_ref_id): sig_ref.grid = row["LOCATOR"] if "LOCATOR" in row else None sig_ref.latitude = float(row["LAT"]) if "LAT" in row else None sig_ref.longitude = float(row["LNG"]) if "LNG" in row else None + break elif sig.upper() == "WOTA": data = SEMI_STATIC_URL_DATA_CACHE.get("https://www.wota.org.uk/mapping/data/summits.json", headers=HTTP_HEADERS).json() @@ -100,6 +102,7 @@ def get_sig_ref_info(sig, sig_ref_id): sig_ref.grid = feature["properties"]["qthLocator"] sig_ref.latitude = feature["geometry"]["coordinates"][1] sig_ref.longitude = feature["geometry"]["coordinates"][0] + break elif sig.upper() == "ZLOTA": data = SEMI_STATIC_URL_DATA_CACHE.get("https://ontheair.nz/assets/assets.json", headers=HTTP_HEADERS).json() if data: @@ -110,6 +113,7 @@ def get_sig_ref_info(sig, sig_ref_id): sig_ref.grid = latlong_to_locator(asset["y"], asset["x"], 6) sig_ref.latitude = asset["y"] sig_ref.longitude = asset["x"] + break elif sig.upper() == "BOTA": if not sig_ref.name: sig_ref.name = sig_ref.id