June 25 - Optimize codes

This commit is contained in:
2026-06-25 16:40:10 -04:00
parent b4cb292afa
commit ea3648ad90
10 changed files with 85 additions and 56 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ def dashboard():
stats = get_admin_dashboard_stats()
except Exception as e:
logger.error(f"Dashboard stats error: {e}")
stats = {"user_stats": [], "total_sites": 0, "total_users": 0, "active_today": 0}
stats = {"user_stats": [], "total_sites": 0, "total_users": 0, "active_today": 0,
"open_bids": 0, "bids_due_soon": 0, "ai_analyses_30d": 0}
try:
missed = get_missed_shifts_today()
except Exception as e: