Skip to content

Commit

Permalink
🐛 fix the page_number_key bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefEZ committed Dec 26, 2023
1 parent e21c023 commit 0864e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qalib/translators/xml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def deserialize_expansive(
assert raw_embed is not None, "Embed not found"

return [self.deserialize_message(element, callbacks, events, embed=e)
for e in expand(XMLExpansiveEmbedAdapter(raw_embed, raw_embed.get("page_number_key")))]
for e in expand(XMLExpansiveEmbedAdapter(raw_embed, element.get("page_number_key")))]

def deserialize_menu_arrows(self, arrows_view: ElementTree.Element) -> Dict[MenuActions, ButtonComponent]:
"""Deserializes the arrows of a menu from an XML file, and returns it as a dictionary.
Expand Down

0 comments on commit 0864e47

Please sign in to comment.