feat: Zutaten im Listendialog dem BLS zuordnen
Mapping-Status pro Zutat, Suche zuerst Listen und eigene Foods. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b37005be01
commit
a5adff6196
10 files changed
+237
-23
No files matched your search
@@ -377,6 +377,17 @@ def list_unmapped_foods(
|
||||
return list_unmapped_payload(get_cursor(conn), pid, since_days, count_only, meta)
|
||||
|
||||
|
||||
@router.get("/ingredient-names")
|
||||
def list_food_ingredient_names(
|
||||
x_profile_id: Optional[str] = Header(default=None),
|
||||
session: dict = Depends(require_auth),
|
||||
):
|
||||
from data_layer.food_recipes import list_known_ingredient_names
|
||||
pid = get_pid(x_profile_id)
|
||||
with get_db() as conn:
|
||||
return list_known_ingredient_names(get_cursor(conn), pid)
|
||||
|
||||
|
||||
@router.get("/recipes")
|
||||
def list_food_recipes(
|
||||
brief: bool = False,
|
||||
|
||||
Reference in new issue
Block a user