From e2f7a1dcc36553be75147c86b128575d0d15f9aa Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Wed, 3 Jan 2024 15:37:48 +0100 Subject: [PATCH] Fix history calendar --- nummi/history/templates/history/plot.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %}