mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-23 06:45:22 -07:00
Update mealie/routes/households/controller_group_recipe_actions.py
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
parent
b94eb30ebc
commit
149e6fc396
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class GroupRecipeActionController(BaseUserController):
|
||||||
|
|
||||||
@router.post("/{item_id}/trigger/{recipe_slug}", status_code=202)
|
@router.post("/{item_id}/trigger/{recipe_slug}", status_code=202)
|
||||||
def trigger_action(
|
def trigger_action(
|
||||||
self, item_id: UUID4, recipe_slug: str, bg_tasks: BackgroundTasks, scaled_amount: float = Body(..., embed=True)
|
self, item_id: UUID4, recipe_slug: str, bg_tasks: BackgroundTasks, scaled_amount: float = Body(1, embed=True)
|
||||||
) -> None:
|
) -> None:
|
||||||
recipe_action = self.repos.group_recipe_actions.get_one(item_id)
|
recipe_action = self.repos.group_recipe_actions.get_one(item_id)
|
||||||
if not recipe_action:
|
if not recipe_action:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue