Fix some dodgy handling of DME references

This commit is contained in:
Ian Renton
2026-09-05 10:24:18 +01:00
parent e52790f07d
commit 0fcc459cc4
9 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def get_sig_ref_info(sig_name, ref_id):
if sig_name.upper() == "DME":
match = re.match(r"DME[\- ](\d{3,5})", ref_id, re.IGNORECASE)
number = match.group(1)
return f"DME-{number.zfill(5)}"
ref_id = f"DME-{number.zfill(5)}"
# DTMBA spotters sometimes include spaces and dashes, our regex allows them but they must be removed here so we
# can look up against the official list which doesn't have them