Public Access
feat(meals): suggest complementary sides
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user