feat(meals): suggest complementary sides
CI / backend (pytest + alembic) (push) Has been cancelled
CI / frontend (build) (push) Has been cancelled

This commit is contained in:
2026-06-29 14:59:30 -07:00
parent 18d7300b57
commit 7f5757094e
12 changed files with 294 additions and 9 deletions
+3
View File
@@ -19,6 +19,7 @@ from app.schemas import (
from app.security import require_session
from app.services import approval as approval_service
from app.services.feedback_analyzer import FeedbackAnalyzer
from app.services.meal_pairings import components_with_suggested_sides
from uuid import UUID
from typing import List, Optional
from datetime import datetime, timedelta, timezone
@@ -683,6 +684,7 @@ def generate_single_item(
day_of_week=day_of_week,
meal_type=MealType[meal_type.upper()],
approval_status=MealPlanItemStatus.pending,
components=components_with_suggested_sides(recipe, meal_type),
)
db.add(new_item)
db.commit()
@@ -769,6 +771,7 @@ def fill_empty_slots(
day_of_week=day,
meal_type=MealType[mt.upper()],
approval_status=MealPlanItemStatus.pending,
components=components_with_suggested_sides(recipe, mt),
)
db.add(new_item)
try: