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 %}