Fix plots for person list view, issue caused by format on save messing up jinja interpolation syntax
This commit is contained in:
@@ -202,16 +202,16 @@
|
|||||||
Plotly.newPlot("e-{{ exercise_graph['ExerciseId'] }}", [
|
Plotly.newPlot("e-{{ exercise_graph['ExerciseId'] }}", [
|
||||||
{% if 'repetitions' in graph_axis %}
|
{% if 'repetitions' in graph_axis %}
|
||||||
{
|
{
|
||||||
x: { { exercise_graph['StartDates'] | replace('"', "'") | safe } },
|
x: {{ exercise_graph['StartDates'] | replace('"', "'") | safe }},
|
||||||
y: { { exercise_graph['Repetitions'] | replace('"', "'") | safe } },
|
y: {{ exercise_graph['Repetitions'] | replace('"', "'") | safe }},
|
||||||
name: 'Reps',
|
name: 'Reps',
|
||||||
type: 'scatter'
|
type: 'scatter'
|
||||||
},
|
},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if 'weight' in graph_axis %}
|
{% if 'weight' in graph_axis %}
|
||||||
{
|
{
|
||||||
x: { { exercise_graph['StartDates'] | replace('"', "'") | safe } },
|
x: {{ exercise_graph['StartDates'] | replace('"', "'") | safe }},
|
||||||
y: { { exercise_graph['Weights'] | replace('"', "'") | safe } },
|
y: {{ exercise_graph['Weights'] | replace('"', "'") | safe }},
|
||||||
name: 'Weight',
|
name: 'Weight',
|
||||||
yaxis: 'y2',
|
yaxis: 'y2',
|
||||||
type: 'scatter'
|
type: 'scatter'
|
||||||
@@ -219,8 +219,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if 'estimated1rm' in graph_axis %}
|
{% if 'estimated1rm' in graph_axis %}
|
||||||
{
|
{
|
||||||
x: { { exercise_graph['StartDates'] | replace('"', "'") | safe } },
|
x: {{ exercise_graph['StartDates'] | replace('"', "'") | safe }},
|
||||||
y: { { exercise_graph['Estimated1RM'] | replace('"', "'") | safe } },
|
y: {{ exercise_graph['Estimated1RM'] | replace('"', "'") | safe }},
|
||||||
name: 'Estimated 1RM',
|
name: 'Estimated 1RM',
|
||||||
yaxis: 'y3',
|
yaxis: 'y3',
|
||||||
type: 'scatter'
|
type: 'scatter'
|
||||||
|
|||||||
Reference in New Issue
Block a user