Jun 29 - Admin view user's notes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user