WIP: Add option to toggle graphs (havent yet added axis filter)

This commit is contained in:
Peter Stockings
2023-04-02 23:27:20 +10:00
parent d44582d2a2
commit ca3eb48da6
4 changed files with 38 additions and 12 deletions

3
db.py
View File

@@ -158,7 +158,8 @@ class DataBase():
E.exercise_id AS "ExerciseId",
E.name AS "ExerciseName",
T.repetitions AS "Repetitions",
T.weight AS "Weight"
T.weight AS "Weight",
round((100 * T.Weight::numeric::integer)/(101.3-2.67123 * T.Repetitions),0)::numeric::integer AS "Estimated1RM"
FROM Person P
LEFT JOIN Workout W ON P.person_id=W.person_id
LEFT JOIN TopSet T ON W.workout_id=T.workout_id