Fix tags, may have increased load on database while only using one query to fetch workout, topsets, and all tags

This commit is contained in:
Peter Stockings
2024-11-04 22:33:08 +11:00
parent 10326ccd7a
commit b5493e627c
6 changed files with 48 additions and 33 deletions

View File

@@ -13,10 +13,8 @@
<div class="w-full">
<h3 class="text-xl font-bold text-gray-900">{{ person_name }}</h3>
{{ render_partial('partials/workout_tags.html', person_id=person_id,
workout_id=workout_id,
person_tags=person_tags, workout_tags=workout_tags,
selected_workout_tag_ids=selected_workout_tag_ids) }}
{{ render_partial('partials/workout_tags.html', person_id=person_id, workout_id=workout_id,
tags=tags) }}
</div>