From eb091c8aa148cc64e15a7aee543eba51f89bcde1 Mon Sep 17 00:00:00 2001 From: James Turk Date: Fri, 3 Apr 2015 17:19:11 -0400 Subject: [PATCH] fix numbering of days --- lifting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lifting/views.py b/lifting/views.py index 53cf5f7..1a74608 100644 --- a/lifting/views.py +++ b/lifting/views.py @@ -28,10 +28,10 @@ def month(request, year, month): # start calendar with a few blank days days = [None]*first_day - for day in range(max_days+1): + for day in range(1, max_days+1): days.append({'number': day, 'sets': sets_by_day[day]}) - days_by_week = [days[0:7], days[7:14], days[14:21], days[21:28], days[28:35]] + days_by_week = [days[0:7], days[7:14], days[14:21], days[21:28], days[28:35], days[35:42]] return render(request, 'month.html', { 'date': date, 'days': days_by_week