From ae34386835efb9c0f01845908bb4c55910fbaa02 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 22 Oct 2023 14:46:22 +1100 Subject: [PATCH] Show formatted name for attribute label on graphs --- app.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/app.py b/app.py index df9b48e..8be77d5 100644 --- a/app.py +++ b/app.py @@ -216,6 +216,11 @@ def create_workout(user_id): @app.route('/user//workouts/graph', methods=['GET']) def graph_user_workouts(user_id): + attributes = request.args.getlist( + 'attributes', type=str) + if not attributes: + return "" + if htmx: return f"""