Fixed type issue

This commit is contained in:
2025-11-22 16:23:19 -05:00
parent eb8dcc0f36
commit fec8c05216
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -163,4 +163,5 @@ cython_debug/
storage/
# Custom
ingredients.json
ingredients.json
checklist.md

View File

@@ -37,7 +37,7 @@ def combine_ingredients(meals: dict) -> dict:
for meal, ingredients in meals.items():
for ingredient, detail in ingredients.items():
if ingredient in combined_ingredients:
combined_ingredients[ingredient]['quantity'] += detail['quantity']
combined_ingredients[ingredient]['quantity'] = str(float(combined_ingredients[ingredient]['quantity']) + float(detail['quantity']))
else:
combined_ingredients[ingredient] = detail
return combined_ingredients