mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
format
This commit is contained in:
parent
c06cf2c001
commit
c2a91c5d9e
1 changed files with 1 additions and 3 deletions
|
@ -97,9 +97,7 @@ def delete_recipe(
|
|||
try:
|
||||
recipe: Recipe = db.recipes.delete(session, recipe_slug)
|
||||
delete_assets(recipe_slug=recipe_slug)
|
||||
create_recipe_event(
|
||||
"Recipe Deleted", f"'{recipe.name}' deleted by {current_user.full_name}", session=session
|
||||
)
|
||||
create_recipe_event("Recipe Deleted", f"'{recipe.name}' deleted by {current_user.full_name}", session=session)
|
||||
return recipe
|
||||
except Exception:
|
||||
raise HTTPException(status.HTTP_400_BAD_REQUEST)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue