Fixed recipe parsing for py3.11
This commit is contained in:
parent
6ae7036ca7
commit
676378b4fb
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ def parse_ingredient_from_nlp(ingredient_string: str) -> Ingredient:
|
|||
quantity = amount.quantity
|
||||
|
||||
if unit is None and amount.unit:
|
||||
real_unit = units.get_unit(amount.unit)
|
||||
real_unit = units.get_unit(str(amount.unit))
|
||||
if real_unit:
|
||||
unit = real_unit.name
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue