diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-06-10 14:33:36 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-06-10 14:33:36 +0100 |
| commit | 0161ad672f3b0309ff6ecd0608add727b4b5e1e7 (patch) | |
| tree | 4cbb0586b521338584dfaafa09e3bb306cc99417 /app/templates/admin | |
| parent | Increase zoom extent (diff) | |
| download | AnnotateChange-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.html | 4 |
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 %} |
