Statically render svg graphs on person view as well

This commit is contained in:
Peter Stockings
2023-12-09 23:30:22 +11:00
parent d0afd92126
commit fe01b2ade3
3 changed files with 6 additions and 10 deletions

View File

@@ -271,7 +271,7 @@ def get_exercise_graph_model(title, estimated_1rm, repetitions, weight, start_da
# Generate points along the line of best fit
y_best_fit = [m * xi + b for xi in x]
best_fit_points = list(zip(y_best_fit, relative_positions))
except np.linalg.LinAlgError:
except:
pass
# Create messages and zip data for SVG plotting