mirror of
https://github.com/sstent/foodplanner.git
synced 2026-03-18 19:25:28 +00:00
chore(conductor): Mark track 'Add real-time search and alphabetical sorting to the Add Meal and Add Food modals on the tracker page.' as complete
This commit is contained in:
@@ -77,12 +77,15 @@ async def tracker_page(request: Request, person: str = "Sarah", date: str = None
|
||||
# Template will handle filtering of deleted foods
|
||||
# Get all meals for dropdown (exclude snapshots)
|
||||
meals = db.query(Meal).filter(Meal.meal_type != "tracked_snapshot").all()
|
||||
meals.sort(key=lambda x: x.name.lower())
|
||||
|
||||
# Get all templates for template dropdown
|
||||
templates_list = db.query(Template).all()
|
||||
templates_list.sort(key=lambda x: x.name.lower())
|
||||
|
||||
# Get all foods for dropdown
|
||||
foods = db.query(Food).all()
|
||||
foods.sort(key=lambda x: x.name.lower())
|
||||
|
||||
# Calculate day totals
|
||||
day_totals = calculate_day_nutrition_tracked(tracked_meals, db)
|
||||
|
||||
Reference in New Issue
Block a user