Fix a potential NPE and a case where callsign location source could be reported as None instead of DXCC.

This commit is contained in:
Ian Renton
2026-09-11 07:32:15 +01:00
parent 3b575de36a
commit 64bb8ef3eb
12 changed files with 21 additions and 23 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ class Spot:
dx_latitude: float | None = None
dx_longitude: float | None = None
# DX Location source. Indicates how accurate the location might be.
dx_location_source: LocationSourceForSpot = LocationSourceForSpot.NONE
dx_location_source: LocationSourceForSpot | None = None
# DX Location good. Indicates that the software thinks the location data is good enough to plot on a map. This is
# true if the location source is "SPOT", "SIG REF LOOKUP" or "GRID", or if the location source is "HOME QTH" and the
# DX callsign doesn't have a suffix like /P.
@@ -107,7 +107,7 @@ class Spot:
# Inferred mode "family".
mode_type: ModeType | None = None
# Source of the mode information.
mode_source: ModeSource = ModeSource.NONE
mode_source: ModeSource | None = None
# Frequency, in Hz
freq: float | None = None
# Band, defined by the frequency, e.g. "40m" or "70cm"