aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-06-10 14:33:36 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-06-10 14:33:36 +0100
commit0161ad672f3b0309ff6ecd0608add727b4b5e1e7 (patch)
tree4cbb0586b521338584dfaafa09e3bb306cc99417 /app/templates/admin
parentIncrease zoom extent (diff)
downloadAnnotateChange-0161ad672f3b0309ff6ecd0608add727b4b5e1e7.tar.gz
AnnotateChange-0161ad672f3b0309ff6ecd0608add727b4b5e1e7.zip
Use tojson instead of safe
Diffstat (limited to 'app/templates/admin')
-rw-r--r--app/templates/admin/annotations_by_dataset.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/admin/annotations_by_dataset.html b/app/templates/admin/annotations_by_dataset.html
index a0e935b..3885d7f 100644
--- a/app/templates/admin/annotations_by_dataset.html
+++ b/app/templates/admin/annotations_by_dataset.html
@@ -16,8 +16,8 @@
<script src="{{ url_for('static', filename='js/makeChart.js') }}"></script>
<script>adminViewAnnotations(
'#graph',
- {{ data.chart_data | safe }},
- {{ data.annotations | safe }}
+ {{ data.chart_data | tojson }},
+ {{ data.annotations | tojson }}
);
</script>
{% endblock scripts %}