From 7fd2817014acffbb19bdab2b47c853f7c5e9dd16 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 7 Nov 2021 13:47:54 +0100 Subject: [PATCH] fixed nextcloiud importer --- cookbook/integration/nextcloud_cookbook.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/integration/nextcloud_cookbook.py b/cookbook/integration/nextcloud_cookbook.py index 882f13293..1a44a39e6 100644 --- a/cookbook/integration/nextcloud_cookbook.py +++ b/cookbook/integration/nextcloud_cookbook.py @@ -41,9 +41,9 @@ class NextcloudCookbook(Integration): ingredient_parser = IngredientParser(self.request, True) for ingredient in recipe_json['recipeIngredient']: - amount, unit, ingredient, note = parse(ingredient) - f = get_food(ingredient, self.request.space) - u = get_unit(unit, self.request.space) + amount, unit, ingredient, note = ingredient_parser.parse(ingredient) + f = ingredient_parser.get_food(ingredient) + u = ingredient_parser.get_unit(unit) step.ingredients.add(Ingredient.objects.create( food=f, unit=u, amount=amount, note=note, space=self.request.space, ))