Make stats refresh, and add filter support to stats endpoint

This commit is contained in:
Peter Stockings
2025-01-26 23:01:39 +11:00
parent 23de6ef1f7
commit 527395d704
10 changed files with 73 additions and 65 deletions

View File

@@ -159,11 +159,13 @@
</div>
</div>
<div class="hidden" hx-get="{{ url_for('get_stats_for_person', person_id=person_id) }}"
hx-include="[name='exercise_id'],[name='min_date'],[name='max_date']" hx-trigger="load" hx-target="#stats"
hx-swap="innerHTML">
</div>
{% endblock %}
{% block stats %}
{{ render_partial('partials/stats.html', stats=stats) }}
{% endblock %}
{% block add_workout_button %}
<button