diff --git a/cookbook/integration/mealie.py b/cookbook/integration/mealie.py index f32e74551..4d9d51aad 100644 --- a/cookbook/integration/mealie.py +++ b/cookbook/integration/mealie.py @@ -23,7 +23,8 @@ class Mealie(Integration): name=recipe_json['name'].strip(), description=description, created_by=self.request.user, internal=True, space=self.request.space) - # TODO parse times (given in PT2H3M ) + # TODO parse times (given in PT2H3M ) + # @vabene check recipe_url_import.iso_duration_to_minutes I think it does what you are looking for ingredients_added = False for s in recipe_json['recipe_instructions']: diff --git a/cookbook/integration/nextcloud_cookbook.py b/cookbook/integration/nextcloud_cookbook.py index bb0cec2e6..00a379d4c 100644 --- a/cookbook/integration/nextcloud_cookbook.py +++ b/cookbook/integration/nextcloud_cookbook.py @@ -25,6 +25,7 @@ class NextcloudCookbook(Integration): servings=recipe_json['recipeYield'], space=self.request.space) # TODO parse times (given in PT2H3M ) + # @vabene check recipe_url_import.iso_duration_to_minutes I think it does what you are looking for # TODO parse keywords ingredients_added = False diff --git a/cookbook/views/data.py b/cookbook/views/data.py index 37a4c467c..f5a1777a7 100644 --- a/cookbook/views/data.py +++ b/cookbook/views/data.py @@ -149,7 +149,7 @@ def import_url(request): recipe.steps.add(step) for kw in data['keywords']: - k = Keyword.objects.get_or_create(name=kw['text'], space=request.space) + k, created = Keyword.objects.get_or_create(name=kw['text'], space=request.space) recipe.keywords.add(k) for ing in data['recipeIngredient']: