more cleanup from ugly merge

This commit is contained in:
smilerz
2021-03-19 13:17:10 -05:00
parent 36841d74af
commit 58e33ef31a
7 changed files with 38 additions and 50 deletions

View File

@@ -95,7 +95,7 @@ def find_recipe_json(ld_json, url, space):
if 'recipeCuisine' in ld_json:
keywords += listify_keywords(ld_json['recipeCuisine'])
try:
ld_json['keywords'] = parse_keywords(list(set(map(str.casefold, keywords))))
ld_json['keywords'] = parse_keywords(list(set(map(str.casefold, keywords))), space)
except TypeError:
pass
@@ -197,7 +197,7 @@ def get_from_scraper(scrape, space):
ingredients = []
for x in scrape.ingredients():
try:
amount, unit, ingredient, note = parse_ingredient(x)
amount, unit, ingredient, note = parse_single_ingredient(x)
if ingredient:
ingredients.append(
{