From bfc873f974cca65ce99dfc282f9d86022cbd9d17 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Wed, 26 Jul 2023 17:53:49 +1000 Subject: [PATCH] Fix plots for person list view, issue caused by format on save messing up jinja interpolation syntax --- templates/person.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/person.html b/templates/person.html index f35cc21..e5473a8 100644 --- a/templates/person.html +++ b/templates/person.html @@ -202,16 +202,16 @@ Plotly.newPlot("e-{{ exercise_graph['ExerciseId'] }}", [ {% if 'repetitions' in graph_axis %} { - x: { { exercise_graph['StartDates'] | replace('"', "'") | safe } }, - y: { { exercise_graph['Repetitions'] | replace('"', "'") | safe } }, + x: {{ exercise_graph['StartDates'] | replace('"', "'") | safe }}, + y: {{ exercise_graph['Repetitions'] | replace('"', "'") | safe }}, name: 'Reps', type: 'scatter' }, {% endif %} {% if 'weight' in graph_axis %} { - x: { { exercise_graph['StartDates'] | replace('"', "'") | safe } }, - y: { { exercise_graph['Weights'] | replace('"', "'") | safe } }, + x: {{ exercise_graph['StartDates'] | replace('"', "'") | safe }}, + y: {{ exercise_graph['Weights'] | replace('"', "'") | safe }}, name: 'Weight', yaxis: 'y2', type: 'scatter' @@ -219,8 +219,8 @@ {% endif %} {% if 'estimated1rm' in graph_axis %} { - x: { { exercise_graph['StartDates'] | replace('"', "'") | safe } }, - y: { { exercise_graph['Estimated1RM'] | replace('"', "'") | safe } }, + x: {{ exercise_graph['StartDates'] | replace('"', "'") | safe }}, + y: {{ exercise_graph['Estimated1RM'] | replace('"', "'") | safe }}, name: 'Estimated 1RM', yaxis: 'y3', type: 'scatter'