Add SQL insight dashboard widgets
This commit is contained in:
@@ -112,6 +112,7 @@ def dashboard():
|
||||
exercises = db.dashboard.get_exercises_with_selection(selected_people_ids, min_date, max_date, selected_exercise_ids)
|
||||
tags = db.get_tags_for_dashboard()
|
||||
dashboard = db.dashboard.get(selected_people_ids, min_date, max_date, selected_exercise_ids)
|
||||
pinned_widgets = db.dashboard.get_pinned_widgets(current_user.id) if current_user.is_authenticated else []
|
||||
|
||||
# Render the appropriate response for HTMX or full page
|
||||
render_args = {
|
||||
@@ -119,6 +120,7 @@ def dashboard():
|
||||
"people": people,
|
||||
"exercises": exercises,
|
||||
"tags": tags,
|
||||
"pinned_widgets": pinned_widgets,
|
||||
"selected_people_ids": selected_people_ids,
|
||||
"max_date": max_date,
|
||||
"min_date": min_date,
|
||||
|
||||
Reference in New Issue
Block a user