Skip to content

Commit

Permalink
Do not query ingredient key when parsing ingredients from line (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
cydanil authored Jan 27, 2023
1 parent 42a8bfe commit 19a5448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gourmand/reccard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ def add_ingredient_from_line(self,
selected item, so that the new ingredient can be added right below it in
the tree.
"""
d = self.rg.rd.parse_ingredient(line, conv=self.rg.conv)
d = self.rg.rd.parse_ingredient(line, conv=self.rg.conv, get_key=False)
if d:
if 'rangeamount' in d:
d['amount'] = self.rg.rd.format_amount_string_from_amount(
Expand Down

0 comments on commit 19a5448

Please sign in to comment.