Try another week

main
Bob Mottram 2020-08-29 14:09:39 +01:00
parent b14a6d0ab5
commit e7da255a5f
1 changed files with 2 additions and 2 deletions

View File

@ -6592,7 +6592,7 @@ def htmlCalendar(translate: {},
else: else:
daysInMonth = \ daysInMonth = \
(date(year + 1, 1, 1) - date(year, monthNumber, 1)).days (date(year + 1, 1, 1) - date(year, monthNumber, 1)).days
print('daysInMonth ' + str(monthNumber) + ': ' + str(daysInMonth)) # print('daysInMonth ' + str(monthNumber) + ': ' + str(daysInMonth))
cssFilename = baseDir + '/epicyon-calendar.css' cssFilename = baseDir + '/epicyon-calendar.css'
if os.path.isfile(baseDir + '/calendar.css'): if os.path.isfile(baseDir + '/calendar.css'):
@ -6646,7 +6646,7 @@ def htmlCalendar(translate: {},
dayOfMonth = 0 dayOfMonth = 0
dow = weekDayOfMonthStart(monthNumber, year) dow = weekDayOfMonthStart(monthNumber, year)
for weekOfMonth in range(1, 6): for weekOfMonth in range(1, 7):
calendarStr += ' <tr>\n' calendarStr += ' <tr>\n'
for dayNumber in range(1, 8): for dayNumber in range(1, 8):
if (weekOfMonth > 1 and dayOfMonth < daysInMonth) or \ if (weekOfMonth > 1 and dayOfMonth < daysInMonth) or \