From 6e171d19f05c776ce978dbac0d43b0fa8db6ea24 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 13 Apr 2022 23:51:44 -0400 Subject: [PATCH] Remove no longer needed control data --- WebHostLib/stats.py | 2 +- WebHostLib/templates/stats.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WebHostLib/stats.py b/WebHostLib/stats.py index 30272cdc..9a164d02 100644 --- a/WebHostLib/stats.py +++ b/WebHostLib/stats.py @@ -73,4 +73,4 @@ def stats(): script, charts = components((plot, pie)) return render_template("stats.html", js_resources=INLINE.render_js(), css_resources=INLINE.render_css(), - chart_data=script, charts=charts, chart_count=len(charts)) + chart_data=script, charts=charts) diff --git a/WebHostLib/templates/stats.html b/WebHostLib/templates/stats.html index 5d282907..a662e21b 100644 --- a/WebHostLib/templates/stats.html +++ b/WebHostLib/templates/stats.html @@ -18,9 +18,9 @@
- {% for index in range(chart_count) %} + {% for chart in charts %}
- {{ charts[index]|indent(12)|safe }} + {{ chart|indent(12)|safe }}
{% endfor %}