Skip to content

Commit

Permalink
Remove namesapace for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Aug 9, 2023
1 parent 21c58a7 commit 238a0a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def _get_ref_var(self, var_id):

def _get_attributes(self, id_in_items_of_object, element, element_dict):
for key, value in element.attrib.items():
key = key[key.find('}') + 1:]
if key == "var_ref":
element_dict[f"{key}@{id_in_items_of_object}"] = self._get_ref_var(value)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def _get_ref_var(self, var_id):

def _get_attributes(self, id_in_items_of_state, element, element_dict):
for key, value in element.attrib.items():
key = key[key.find('}') + 1:]
if key == "var_ref":
element_dict[f"{key}@{id_in_items_of_state}"] = self._get_ref_var(value)
else:
Expand Down

0 comments on commit 238a0a8

Please sign in to comment.