Hide button to load more workouts when all workouts have been fetched

This commit is contained in:
Peter Stockings
2023-10-13 19:17:40 +11:00
parent 9b43d7a8f4
commit 339b8722fc
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@@ -290,7 +290,7 @@ def calendar_view(user_id):
@ app.route("/user/<int:user_id>/workout/list", methods=['GET'])
def workout_list(user_id):
workouts = get_workouts_for_user(user_id)
return render_template('partials/workouts_list_fragment.html', workouts=workouts, user_id=user_id)
return render_template('partials/workouts_list_fragment.html', workouts=workouts, user_id=user_id, workouts_all_loaded=True)
def render_users_and_workouts():