fixed url importer stuff

This commit is contained in:
vabene1111
2021-03-19 10:05:17 +01:00
parent d3b1139a22
commit 58fc26904b
2 changed files with 17 additions and 4 deletions

View File

@ -236,7 +236,6 @@ def get_from_scraper(scrape, space):
recipe_json['prepTime'] = 0
recipe_json['cookTime'] = 0
description += "\n\nImported from " + scrape.url
recipe_json['description'] = description
try:
@ -315,6 +314,7 @@ def get_from_scraper(scrape, space):
except AttributeError:
recipe_json['recipeInstructions'] = ""
recipe_json['recipeInstructions'] += "\n\nImported from " + scrape.url
return recipe_json