# Bugfix code update
* fixes bug where empty short names were not resolved properly
This commit is contained in:
parent
7bfe6a37f8
commit
19bd408fbd
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user