From 19a544882b1aabb75d83494e3797e515909300bb Mon Sep 17 00:00:00 2001 From: Cyril Danilevski Date: Fri, 27 Jan 2023 19:02:40 +0100 Subject: [PATCH] Do not query ingredient key when parsing ingredients from line (#142) --- src/gourmand/reccard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gourmand/reccard.py b/src/gourmand/reccard.py index e6803daf..cbde84a3 100644 --- a/src/gourmand/reccard.py +++ b/src/gourmand/reccard.py @@ -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(