🚧 fix various small things

This commit is contained in:
neingeist 2025-06-02 21:17:25 +02:00
parent 7e462dfa18
commit 55fbdc47ab
37 changed files with 79 additions and 76 deletions

View file

@ -23,7 +23,7 @@ def normalize_ingredients(recipe):
ingredient.replace('.0 ', ' ') for ingredient in recipe['recipeIngredient']
]
recipe['recipeIngredient'] = [
re.sub("^0 (g|kg|Milliliter) ", "", ingredient) for ingredient in recipe['recipeIngredient']
re.sub("^0 (g|kg|Milliliter|None) ", "", ingredient) for ingredient in recipe['recipeIngredient']
]
recipe['recipeIngredient'] = [
ingredient \