Skip to content

Commit

Permalink
Merge pull request #11 from jwjulien/master
Browse files Browse the repository at this point in the history
corrected issue with mash step parsing
  • Loading branch information
hotzenklotz committed Sep 19, 2019
2 parents e9cf8d6 + f783e05 commit 210de89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pybeerxml/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ def parse(self, xml_file):
self.nodes_to_object(recipeProperty, style)

elif tag_name == "mash":
mash = Mash()
recipe.mash = mash

for mash_node in list(recipeProperty):
mash = Mash()
recipe.mash = mash

if self.to_lower(mash_node.tag) == "mash_steps":
for mash_step_node in list(mash_node):
mash_step = MashStep()
Expand Down

0 comments on commit 210de89

Please sign in to comment.