mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-06 02:21:42 +00:00
Refactor of caching & data storage part 9 #118
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@ import pytz
|
||||
|
||||
from core.call_lookup_helper import lookup_helper
|
||||
from core.sig_lookup_helper import populate_sig_ref_info
|
||||
from core.utils import get_flag_for_dxcc
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -96,7 +97,7 @@ class Alert:
|
||||
if self.dx_calls and self.dx_calls[0] and not self.dx_dxcc_id:
|
||||
self.dx_dxcc_id = lookup_helper.infer_dxcc_id_from_callsign(self.dx_calls[0], credentials)
|
||||
if self.dx_dxcc_id and not self.dx_flag:
|
||||
self.dx_flag = lookup_helper.get_flag_for_dxcc(self.dx_dxcc_id)
|
||||
self.dx_flag = get_flag_for_dxcc(self.dx_dxcc_id)
|
||||
|
||||
# Fetch SIG data. In case a particular API doesn't provide a full set of name, lat, lon & grid for a reference
|
||||
# in its initial call, we use this code to populate the rest of the data. This includes working out grid refs
|
||||
|
||||
Reference in New Issue
Block a user