feat(sheets): add online career, subject, day filtering and manual date assignment controls
This commit is contained in:
@@ -414,21 +414,6 @@ def get_stats():
|
||||
available_classrooms_month = []
|
||||
total_active_commissions = 0
|
||||
milestones = []
|
||||
date_labels = {
|
||||
'today': 'Hoy',
|
||||
'today_short': 'Hoy',
|
||||
'today_full': 'Hoy',
|
||||
'week': 'Esta Semana',
|
||||
'week_full': 'Esta Semana',
|
||||
'month': 'Este Mes',
|
||||
'month_full': 'Este Mes'
|
||||
}
|
||||
filter_stats = {
|
||||
'date_labels': date_labels,
|
||||
'today': {'label': 'Hoy', 'classrooms': {'assigned': [], 'unassigned': [], 'assigned_count': 0, 'unassigned_count': 0, 'assigned_pct': 0, 'unassigned_pct': 0, 'total': 0}, 'commissions': {'assigned': [], 'unassigned': [], 'assigned_count': 0, 'unassigned_count': 0, 'assigned_pct': 0, 'unassigned_pct': 0, 'total': 0}},
|
||||
'week': {'label': 'Esta Semana', 'classrooms': {'assigned': [], 'unassigned': [], 'assigned_count': 0, 'unassigned_count': 0, 'assigned_pct': 0, 'unassigned_pct': 0, 'total': 0}, 'commissions': {'assigned': [], 'unassigned': [], 'assigned_count': 0, 'unassigned_count': 0, 'assigned_pct': 0, 'unassigned_pct': 0, 'total': 0}},
|
||||
'month': {'label': 'Este Mes', 'classrooms': {'assigned': [], 'unassigned': [], 'assigned_count': 0, 'unassigned_count': 0, 'assigned_pct': 0, 'unassigned_pct': 0, 'total': 0}, 'commissions': {'assigned': [], 'unassigned': [], 'assigned_count': 0, 'unassigned_count': 0, 'assigned_pct': 0, 'unassigned_pct': 0, 'total': 0}}
|
||||
}
|
||||
|
||||
# Mocked monthly data for chart since complex SQL group by month might differ based on dialect (SQLite vs Postgres)
|
||||
monthly_data = [
|
||||
@@ -465,9 +450,7 @@ def get_stats():
|
||||
'assigned_today_pct': assigned_today_pct,
|
||||
'unassigned_today_classrooms': unassigned_today_count,
|
||||
'unassigned_today_pct': unassigned_today_pct,
|
||||
'total_active_commissions': total_active_commissions,
|
||||
'date_labels': date_labels,
|
||||
'filter_stats': filter_stats
|
||||
'total_active_commissions': total_active_commissions
|
||||
},
|
||||
'audit_logs': audit_data,
|
||||
'monthly_data': monthly_data,
|
||||
@@ -476,14 +459,10 @@ def get_stats():
|
||||
'week_schedule_list': week_schedule_list,
|
||||
'upcoming_reservations': upcoming_reservations,
|
||||
'milestones': milestones,
|
||||
'filter_stats': filter_stats,
|
||||
'date_labels': date_labels,
|
||||
'ui': {
|
||||
'show_role_banner': SystemSetting.get_value('dashboard_role_banner_enabled', 'true') in ['true', 'True', '1', True]
|
||||
},
|
||||
'bedelia': {
|
||||
'filter_stats': filter_stats,
|
||||
'date_labels': date_labels,
|
||||
'unassigned_commissions_week': unassigned_commissions_week,
|
||||
'unassigned_commissions_month': unassigned_commissions_month,
|
||||
'unassigned_commissions_general': unassigned_commissions_general,
|
||||
|
||||
Reference in New Issue
Block a user