feat: Listen-Dialog mit Mengen/Einheiten, Mitai ohne Kochrezepte
Roh-Kombinationen statt Rezept-Sprache; Zutaten suchen, EL/TL/Prise auf Gramm. Gekochte Gerichte und Ausbeute bleiben Tandoor. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a7e5511039
commit
fa542e0fb9
17 files changed
+776
-203
No files matched your search
@@ -13,6 +13,7 @@ from data_layer.food_mapping import (
|
||||
apply_mapping_to_items,
|
||||
apply_quantities_to_items,
|
||||
clear_mapping_from_items,
|
||||
list_quantity_units,
|
||||
normalize_food_name,
|
||||
upsert_food_mapping,
|
||||
)
|
||||
@@ -79,6 +80,11 @@ def _schedule_rebuild(profile_id: str, dates: list[str], context: str) -> None:
|
||||
).start()
|
||||
|
||||
|
||||
@router.get("/units")
|
||||
def list_food_units(session: dict = Depends(require_auth)):
|
||||
return list_quantity_units()
|
||||
|
||||
|
||||
@router.get("/foods")
|
||||
def search_foods(
|
||||
q: str = "",
|
||||
|
||||
@@ -28,6 +28,9 @@ class RecipeIngredientIn(BaseModel):
|
||||
source_name_raw: str
|
||||
quantity_raw: Optional[str] = None
|
||||
quantity_g: Optional[float] = None
|
||||
quantity_amount: Optional[float] = None
|
||||
source_unit: Optional[str] = None
|
||||
grams_per_unit: Optional[float] = None
|
||||
|
||||
|
||||
class RecipeIn(BaseModel):
|
||||
|
||||
Reference in new issue
Block a user