Remove graph model data from dashboard/people endpoints
This commit is contained in:
7
utils.py
7
utils.py
@@ -63,12 +63,7 @@ def get_rep_maxes_for_person(person_topsets):
|
||||
rep_maxes_in_exercises.append({
|
||||
'ExerciseId': e['ExerciseId'],
|
||||
'ExerciseName': e['ExerciseName'],
|
||||
'RepMaxes': topsets_for_exercise,
|
||||
'EstimatedOneRepMaxProgressions': {
|
||||
'StartDates': json.dumps([t['StartDate'].strftime("%Y-%m-%d") for t in exercise_topsets]),
|
||||
'TopSets': json.dumps([f"{t['Repetitions']} x {t['Weight']}kg" for t in exercise_topsets]),
|
||||
'Estimated1RMs': json.dumps([t['Estimated1RM'] for t in exercise_topsets]),
|
||||
}
|
||||
'RepMaxes': topsets_for_exercise
|
||||
})
|
||||
return rep_maxes_in_exercises
|
||||
|
||||
|
||||
Reference in New Issue
Block a user