From bcee66c7a44a81ab33cc9709afc2bf1b19b1e2ec Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 27 Nov 2023 19:58:56 +0100 Subject: [PATCH] fixed mela recipes importer --- cookbook/integration/melarecipes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/integration/melarecipes.py b/cookbook/integration/melarecipes.py index 9679a90f..fe95460b 100644 --- a/cookbook/integration/melarecipes.py +++ b/cookbook/integration/melarecipes.py @@ -57,7 +57,7 @@ class MelaRecipes(Integration): recipe.source_url = recipe_json['link'] step = Step.objects.create( - instruction=instruction, space=self.request.space, + instruction=instruction, space=self.request.space, show_ingredients_table=self.request.user.userpreference.show_step_ingredients ) ingredient_parser = IngredientParser(self.request, True) @@ -67,7 +67,7 @@ class MelaRecipes(Integration): f = ingredient_parser.get_food(food) u = ingredient_parser.get_unit(unit) step.ingredients.add(Ingredient.objects.create( - food=f, unit=u, amount=amount, note=note, original_text=ingredient, space=self.request.space, show_ingredients_table=self.request.user.userpreference.show_step_ingredients, + food=f, unit=u, amount=amount, note=note, original_text=ingredient, space=self.request.space, )) recipe.steps.add(step)