added source url to nextcloud cookbook
This commit is contained in:
@ -31,6 +31,9 @@ class NextcloudCookbook(Integration):
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if 'url' in recipe_json:
|
||||||
|
recipe.source_url = recipe_json['url'].strip()
|
||||||
|
|
||||||
if 'recipeCategory' in recipe_json:
|
if 'recipeCategory' in recipe_json:
|
||||||
try:
|
try:
|
||||||
recipe.keywords.add(Keyword.objects.get_or_create(space=self.request.space, name=recipe_json['recipeCategory'])[0])
|
recipe.keywords.add(Keyword.objects.get_or_create(space=self.request.space, name=recipe_json['recipeCategory'])[0])
|
||||||
|
Reference in New Issue
Block a user