Skip to content
Snippets Groups Projects
Commit 0942b925 authored by Nicolas Mielec's avatar Nicolas Mielec
Browse files

Fixes last day not appearing in the month pages

parent e39d3fb3
Branches
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ def get_month_page(year, month):
lines = [TEMPLATE['MONTH_HEADER'].format(month=month_dt)]
numdays = calendar.monthrange(year=year, month=month)[1]
for daynum in range(1, numdays):
for daynum in range(1, numdays+1):
day_dt = datetime.datetime(year=month_dt.year, month=month_dt.month, day=daynum)
if TEMPLATE['REMOVE_WEEKENDS'] and day_dt.isoweekday() in (6, 7):
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment