Refactor stats endpoint so supports filtering people and make dashboard page utilise it

This commit is contained in:
Peter Stockings
2025-01-27 00:07:27 +11:00
parent 527395d704
commit 5ed737ee94
7 changed files with 31 additions and 36 deletions

View File

@@ -158,7 +158,7 @@
{% endif %}
</div>
<div class="hidden" hx-get="{{ url_for('get_stats_for_person', person_id=person_id) }}" hx-trigger="load"
<div class="hidden" hx-get="{{ url_for('get_stats') }}" hx-vals='{"person_id": "{{ person_id }}"}' hx-trigger="load"
hx-target="#stats" hx-swap="innerHTML">
</div>