From 4facd77906b5740296c6482cf458051abe502717 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Jul 2021 20:35:57 +0100 Subject: [PATCH] Tidying --- webapp_calendar.py | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/webapp_calendar.py b/webapp_calendar.py index 65cdb7de0..a01ffeb55 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -117,8 +117,7 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {}, if '/users/' in actor: calActor = '/users/' + actor.split('/users/')[1] - instanceTitle = \ - getConfigParam(baseDir, 'instanceTitle') + instanceTitle = getConfigParam(baseDir, 'instanceTitle') calendarStr = htmlHeaderWithExternalStyle(cssFilename, instanceTitle) calendarStr += '
\n' calendarStr += '\n' calendarStr += '\n' calendarStr += '\n' - calendarStr += ' \n' - calendarStr += ' \n' - calendarStr += ' \n' - calendarStr += ' \n' - calendarStr += ' \n' - calendarStr += ' \n' - calendarStr += ' \n' + days = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') + for d in days: + calendarStr += ' \n' calendarStr += '\n' calendarStr += '\n' calendarStr += '\n'
\n' @@ -369,20 +368,10 @@ def htmlCalendar(personCache: {}, cssCache: {}, translate: {}, calendarStr += '
' + \ - translate['Sun'] + '' + \ - translate['Mon'] + '' + \ - translate['Tue'] + '' + \ - translate['Wed'] + '' + \ - translate['Thu'] + '' + \ - translate['Fri'] + '' + \ - translate['Sat'] + '' + \ + translate[d] + '