Make svg graph more generic, and make line of best fit the last line rendered so its always on top

This commit is contained in:
Peter Stockings
2023-12-09 22:25:37 +11:00
parent 9145011819
commit c5e825f4df
2 changed files with 3 additions and 5 deletions

2
db.py
View File

@@ -535,7 +535,7 @@ class DataBase():
# Return exercise data with SVG dimensions and data points
return {
'exercise_name': topsets[0]['exercise_name'],
'title': topsets[0]['exercise_name'],
'vb_width': vb_width,
'vb_height': vb_height,
'plots': [repetitions, weight, estimated_1rm],