mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-08-09 03:51:41 +00:00
SANPCPA support. Closes #120
This commit is contained in:
@@ -27,13 +27,6 @@ def get_sig_ref_info(sig, ref_id):
|
||||
if sig.upper() == "DME":
|
||||
ref_id = ref_id.zfill(5)
|
||||
|
||||
# KRMNPA & SANPCPA fudge. These don't have their own reference system, they just use VKFF references, so pretend
|
||||
# the sig is WWFF and carry on
|
||||
if sig.upper() == "KRMNPA" or sig.upper() == "SANPCPA":
|
||||
sig = "WWFF"
|
||||
|
||||
### SKIPS ###
|
||||
#
|
||||
# If the SIG is HEMA, we have no current lookup for this so just skip the lookup here.
|
||||
if sig.upper() == "HEMA":
|
||||
return sig_ref
|
||||
@@ -75,8 +68,8 @@ def get_sig_ref_info(sig, ref_id):
|
||||
|
||||
### ACTUAL LOOKUP ###
|
||||
#
|
||||
# OK, this is something we have to look up. Now check to see if our data store contains SIG ref information for
|
||||
# this SIG. If so, check for the reference data and use that.
|
||||
# OK, this is something we have to look up. Now check to see if our data store contains reference data and use
|
||||
# that.
|
||||
key = sig + ":" + ref_id
|
||||
lookup_data = DATA_STORE.sigrefs.get(key) if key in DATA_STORE.sigrefs else None
|
||||
if lookup_data:
|
||||
|
||||
Reference in New Issue
Block a user