WIP: Plot estimated 1rm on graphs as well, perhaps add another graph with graph options(reps, weight, 1rms etc)
This commit is contained in:
2
utils.py
2
utils.py
@@ -15,7 +15,7 @@ def get_workouts(topsets):
|
||||
workouts.append({
|
||||
'WorkoutId': workout_id,
|
||||
'StartDate': topsets_in_workout[0]['StartDate'],
|
||||
'TopSets': [{"TopSetId": t['TopSetId'], "ExerciseId": t['ExerciseId'], "ExerciseName": t['ExerciseName'], "Weight": t['Weight'], "Repetitions": t['Repetitions']} for t in topsets_in_workout if t['TopSetId'] is not None]
|
||||
'TopSets': [{"TopSetId": t['TopSetId'], "ExerciseId": t['ExerciseId'], "ExerciseName": t['ExerciseName'], "Weight": t['Weight'], "Repetitions": t['Repetitions'], "Estimated1RM": t['Estimated1RM']} for t in topsets_in_workout if t['TopSetId'] is not None]
|
||||
})
|
||||
|
||||
workouts.sort(key=lambda x: x['StartDate'], reverse=True)
|
||||
|
||||
Reference in New Issue
Block a user