Revert change made in previous commit where if no exerises where selected manually then all would be
This commit is contained in:
3
app.py
3
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]
|
||||
|
||||
Reference in New Issue
Block a user