Fix bug where left join on person and workouts would return a row even when there wasnt an exercise and therefore crashing on person list view
This commit is contained in:
1
utils.py
1
utils.py
@@ -71,6 +71,7 @@ def get_topsets_for_person(person_topsets):
|
||||
person_id = sorted_topsets[0]['PersonId']
|
||||
exercise_name = sorted_topsets[0]['ExerciseName']
|
||||
|
||||
if exercise_name and estimated_1rm and repetitions and weight and start_dates and messages:
|
||||
exercise_progress = get_exercise_graph_model(exercise_name, estimated_1rm, repetitions, weight, start_dates, messages, epoch, person_id, exercise_id)
|
||||
|
||||
exercises_topsets.append({
|
||||
|
||||
Reference in New Issue
Block a user