updated url import and test due to updated recipe_scraper

This commit is contained in:
smilerz
2021-05-20 11:57:05 -05:00
parent 03c78f539d
commit 066ca27712
2 changed files with 5 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ def get_from_scraper(scrape, space):
servings = int(re.findall(r'\b\d+\b', servings)[0])
except Exception:
servings = 1
recipe_json['servings'] = servings
recipe_json['servings'] = max(servings, 1)
try:
recipe_json['prepTime'] = get_minutes(scrape.schema.data.get("prepTime")) or 0