diff --git a/webapp_calendar.py b/webapp_calendar.py index e44f5761e..4da04e069 100644 --- a/webapp_calendar.py +++ b/webapp_calendar.py @@ -289,7 +289,7 @@ def html_calendar(person_cache: {}, css_cache: {}, translate: {}, day_number = int(num_str) elif part.split('=')[0] == 'ical': bool_str = part.split('=')[1] - if bool_str.tolower().startswith('t'): + if bool_str.lower().startswith('t'): icalendar = True first = False actor = actor.split('?')[0] @@ -494,8 +494,14 @@ def html_calendar(person_cache: {}, css_cache: {}, translate: {}, '➕ ' + \ translate['Add to the calendar'] + '\n

\n\n' + calendar_icon_str += \ + ' ' + \ + 'iCalendar\n' + cal_str = \ header_str + screen_reader_cal + calendar_str + \ - new_event_str + html_footer() + new_event_str + calendar_icon_str + html_footer() return cal_str