migrate.py: Set hkid TO WLNO

This commit is contained in:
2023-09-08 00:47:56 +02:00
parent 4ff876da46
commit d7921026be

View File

@ -480,6 +480,9 @@ def lookup_hkid(kgnr: Optional[int], qualid: str) -> str:
hkid = 'WLXX'
elif hkid[:2] in ('WL', 'BL', 'SL'):
hkid = hkid[:2] + 'XX'
else:
if hkid.startswith('WL') and not hkid.endswith('XX'):
hkid = 'WLNO'
return hkid