mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
more cleanup from ugly merge
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user