Fixed recipe dupe bug
This commit is contained in:
parent
a5ad6b7af3
commit
a4639a79fd
1 changed files with 0 additions and 4 deletions
4
main.py
4
main.py
|
|
@ -146,10 +146,6 @@ async def get_meal(meal_id: int, conn: sqlite3.Connection = Depends(get_db)) ->
|
||||||
if not meal:
|
if not meal:
|
||||||
return JSONResponse(status_code=404, content={'message': 'Meal not found'})
|
return JSONResponse(status_code=404, content={'message': 'Meal not found'})
|
||||||
|
|
||||||
await meals.load_participants(conn, meal)
|
|
||||||
await meals.load_recipes(conn, meal)
|
|
||||||
await meals.load_extra_ingredients(conn, meal)
|
|
||||||
|
|
||||||
return meal
|
return meal
|
||||||
|
|
||||||
def get_duplicates(items: List[meals.Person]) -> set[str]:
|
def get_duplicates(items: List[meals.Person]) -> set[str]:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue