SANPCPA support. Closes #120

This commit is contained in:
Ian Renton
2026-08-08 13:45:02 +01:00
parent 605b172bb3
commit 43763bf76f
11 changed files with 95 additions and 17 deletions
+2 -9
View File
@@ -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: