Jun 29 - Admin view user's notes

This commit is contained in:
2026-06-29 17:27:36 -04:00
parent 56a256633b
commit 1a88eb0251
3 changed files with 79 additions and 3 deletions
+8 -2
View File
@@ -4,7 +4,7 @@ routes/admin_dashboard.py — Admin dashboard: today's completion stats.
import logging
from flask import Blueprint, render_template
from models import get_admin_dashboard_stats, get_missed_shifts_today
from models import get_admin_dashboard_stats, get_missed_shifts_today, get_todays_check_notes
from utils.decorators import admin_required
logger = logging.getLogger("routes.admin_dashboard")
@@ -25,4 +25,10 @@ def dashboard():
except Exception as e:
logger.error(f"Missed shifts error: {e}")
missed = []
return render_template("admin/dashboard.html", stats=stats, missed=missed)
try:
check_notes = get_todays_check_notes()
except Exception as e:
logger.error(f"Check notes error: {e}")
check_notes = []
return render_template("admin/dashboard.html", stats=stats, missed=missed,
check_notes=check_notes)