simplified url import

This commit is contained in:
smilerz
2021-04-05 12:32:11 -05:00
parent c6739ba8e0
commit efe4c4043d
5 changed files with 107 additions and 189 deletions

View File

@@ -58,6 +58,7 @@ def get_recipe_from_source(text, url, space):
recipe_json = {
'name': '',
'url': '',
'description': '',
'image': '',
'keywords': [],

View File

@@ -102,6 +102,7 @@ def get_from_scraper(scrape, space):
recipe_json['recipeInstructions'] = ""
if scrape.url:
recipe_json['url'] = scrape.url
recipe_json['recipeInstructions'] += "\n\nImported from " + scrape.url
return recipe_json