From 37aaa9b3f3ef0430a329d581d86c4d5104e64d34 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Mon, 20 Mar 2023 21:44:18 +1100 Subject: [PATCH] Revert change made in previous commit where if no exerises where selected manually then all would be --- app.py | 3 +-- templates/partials/page/person.html | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 33370a0..54addd6 100644 --- a/app.py +++ b/app.py @@ -62,8 +62,7 @@ def get_person(person_id): 'max_date'), '%Y-%m-%d') or max_date selected_exercise_ids = [int(i) - for i in request.args.getlist('exercise_id')] - # or [e['ExerciseId'] for e in person['Exercises']] + for i in request.args.getlist('exercise_id')] or [e['ExerciseId'] for e in person['Exercises']] person['Workouts'] = [filter_workout_topsets(workout, selected_exercise_ids) for workout in person['Workouts'] if workout['StartDate'] <= max_date and workout['StartDate'] >= min_date] diff --git a/templates/partials/page/person.html b/templates/partials/page/person.html index 32e3c13..15acfca 100644 --- a/templates/partials/page/person.html +++ b/templates/partials/page/person.html @@ -34,8 +34,8 @@ -