diff options
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/home.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/templates/home.html b/app/templates/home.html index e06e79b..bf22f67 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -134,7 +134,7 @@ <script type="text/javascript" src="/static/js/chart.js"></script> <script> {% for completed_workout in top3 %} - exercise_chart('chart-{{ loop.index }}', {{ top3[loop.index - 1].id }}, "{{ top3[loop.index - 1].name }}"); + exercise_chart('chart-{{ loop.index }}', {{ top3[loop.index0].id }}, "{{ top3[loop.index0].name }}"); {% endfor %} </script> {% endblock %} |
