Skip to content

Commit

Permalink
Fix #32 -- Parsing of amount without currency
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Oct 4, 2024
1 parent 5ed87a6 commit 02f2e72
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drafthorse/models/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ def set_element(self, el, child):
el._currency = child[1]

def add_from_etree(self, root):
if root.attrib.get("currencyID"):
self.add((root.text, root.attrib["currencyID"]))
else:
self.add(root.text)
self.add((root.text, root.attrib.get("currencyID")))


class IDContainer(SimpleContainer):
Expand Down

0 comments on commit 02f2e72

Please sign in to comment.