mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
fixed broken microdata blowing up ingredient lists
This commit is contained in:
@@ -71,6 +71,7 @@ def find_recipe_json(ld_json, url):
|
|||||||
ingredients = []
|
ingredients = []
|
||||||
|
|
||||||
for x in ld_json['recipeIngredient']:
|
for x in ld_json['recipeIngredient']:
|
||||||
|
if x.replace(' ','') != '':
|
||||||
try:
|
try:
|
||||||
amount, unit, ingredient, note = parse_ingredient(x)
|
amount, unit, ingredient, note = parse_ingredient(x)
|
||||||
if ingredient:
|
if ingredient:
|
||||||
|
|||||||
Reference in New Issue
Block a user