diff --git a/nummi/history/templates/history/plot.html b/nummi/history/templates/history/plot.html index 680686d..9d79dc8 100644 --- a/nummi/history/templates/history/plot.html +++ b/nummi/history/templates/history/plot.html @@ -59,12 +59,12 @@ {% regroup history.data by month.year as years_list %} - {% for y, year in years_list reversed %} + {% for y, y_data in years_list reversed %} {% if not year %} {% year_url y %} {% endif %} - {% for m in year %} + {% for m in y_data %} {% if forloop.parentloop.last and forloop.first %} {% empty_calendar_cells_start m.month.month %} {% endif %}