From 5482da0e6956a9a7834fad0dc586810012d594cc Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Fri, 2 Jan 2026 09:37:57 +0000 Subject: [PATCH] Fix a bug where supplying a grid reference when adding a spot to the API resulted in dx_location_source=NONE in the spot object. Closes #90 --- data/spot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/spot.py b/data/spot.py index a41ccfa..fa6da6a 100644 --- a/data/spot.py +++ b/data/spot.py @@ -224,8 +224,8 @@ class Spot: if self.mode and not self.mode_type: self.mode_type = lookup_helper.infer_mode_type_from_mode(self.mode) - # If we have a latitude at this point, it can only have been provided by the spot itself - if self.dx_latitude: + # If we have a latitude or grid at this point, it can only have been provided by the spot itself + if self.dx_latitude or self.dx_grid: self.dx_location_source = "SPOT" # Set the top-level "SIG" if it is missing but we have at least one SIG ref.