fixed another mealie edge case

This commit is contained in:
vabene1111
2025-12-20 18:32:16 +01:00
parent c5fcfd07a7
commit 5040caf91c

View File

@@ -197,7 +197,7 @@ class Mealie1(Integration):
space=self.request.space,
)
ingredients_relation.append(Step.ingredients.through(step_id=get_step_id(i, first_step_of_recipe_dict, step_id_dict,recipe_ingredient_ref_link_dict), ingredient_id=ingredient.pk))
elif i['note'].strip():
elif i['note'] and i['note'].strip():
amount, unit, food, note = ingredient_parser.parse(i['note'].strip())
f = ingredient_parser.get_food(food)
u = ingredient_parser.get_unit(unit)