Skip to content

Commit

Permalink
[IMP] base_wamas_ubl dict item default value
Browse files Browse the repository at this point in the history
  • Loading branch information
santostelmo committed Sep 10, 2024
1 parent 9a311d7 commit d309892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_wamas_ubl/lib/wamas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ def generate_wamas_dict(dict_item, grammar, **kwargs): # noqa: C901
if isinstance(ubl_path, list):
lst_val = []
for _item in ubl_path:
lst_val.append(dict_item.get(_item, ""))
lst_val.append(dict_item.get(_item) or "")
if lst_val:
val = " ".join(lst_val)
val = " ".join(lst_val).strip()
elif isinstance(ubl_path, dict):
for _key in ubl_path:
if dict_item.get(_key, False):
Expand Down

0 comments on commit d309892

Please sign in to comment.