From 3653d6b91177f907aada2859452653d4ad7acfed Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 4 Apr 2022 22:55:00 +0200 Subject: [PATCH] added source url to nextcloud cookbook --- cookbook/integration/nextcloud_cookbook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbook/integration/nextcloud_cookbook.py b/cookbook/integration/nextcloud_cookbook.py index c61a6d236..912ad733a 100644 --- a/cookbook/integration/nextcloud_cookbook.py +++ b/cookbook/integration/nextcloud_cookbook.py @@ -31,6 +31,9 @@ class NextcloudCookbook(Integration): except Exception: pass + if 'url' in recipe_json: + recipe.source_url = recipe_json['url'].strip() + if 'recipeCategory' in recipe_json: try: recipe.keywords.add(Keyword.objects.get_or_create(space=self.request.space, name=recipe_json['recipeCategory'])[0])