mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fixes #178
This commit is contained in:
parent
948ce9d25e
commit
752b392c7e
1 changed files with 2 additions and 1 deletions
|
@ -3,9 +3,9 @@ from typing import List
|
||||||
from db.database import db
|
from db.database import db
|
||||||
from db.db_setup import generate_session
|
from db.db_setup import generate_session
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
from schema.snackbar import SnackResponse
|
||||||
from services.meal_services import MealPlan
|
from services.meal_services import MealPlan
|
||||||
from sqlalchemy.orm.session import Session
|
from sqlalchemy.orm.session import Session
|
||||||
from schema.snackbar import SnackResponse
|
|
||||||
|
|
||||||
router = APIRouter(prefix="/api/meal-plans", tags=["Meal Plan"])
|
router = APIRouter(prefix="/api/meal-plans", tags=["Meal Plan"])
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ def get_shopping_list(id: str, session: Session = Depends(generate_session)):
|
||||||
ingredients = [
|
ingredients = [
|
||||||
{"name": x.get("name"), "recipeIngredient": x.get("recipeIngredient")}
|
{"name": x.get("name"), "recipeIngredient": x.get("recipeIngredient")}
|
||||||
for x in recipes
|
for x in recipes
|
||||||
|
if x
|
||||||
]
|
]
|
||||||
|
|
||||||
return ingredients
|
return ingredients
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue