Make stats refresh, and add filter support to stats endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user