feat: select ingredients to add to shopping List (#2136)

* added recipe ingredient override to backend

* pytest

* new dialog to filter recipe items added to list
This commit is contained in:
Michael Genson
2023-02-19 19:20:32 -06:00
committed by GitHub
parent 89b003589d
commit 5562effd66
8 changed files with 215 additions and 18 deletions

View File

@@ -14,6 +14,7 @@ from mealie.schema.recipe.recipe_ingredient import (
MAX_INGREDIENT_DENOMINATOR,
IngredientFood,
IngredientUnit,
RecipeIngredient,
)
from mealie.schema.response.pagination import PaginationBase
@@ -237,6 +238,8 @@ class ShoppingListOut(ShoppingListUpdate):
class ShoppingListAddRecipeParams(MealieModel):
recipe_increment_quantity: float = 1
recipe_ingredients: list[RecipeIngredient] | None = None
"""optionally override which ingredients are added from the recipe"""
class ShoppingListRemoveRecipeParams(MealieModel):