# Bugfix code update

* fixes bug where empty short names were not resolved properly
This commit is contained in:
mpeltriaux 2025-01-21 12:52:46 +01:00
parent 7bfe6a37f8
commit 19bd408fbd

View File

@ -82,8 +82,8 @@ class Command(BaseKonovaCommand):
atom_id = element.find("atomid").text
selectable = element.find("selectable").text.lower()
selectable = bool_map.get(selectable, False)
short_name = element.find("shortname").text
long_name = element.find("longname").text
short_name = element.find("shortname").text or ""
long_name = element.find("longname").text or ""
is_archived = bool_map.get((element.find("archive").text.lower()), False)
code = KonovaCode.objects.get_or_create(