diff --git a/webinterface.py b/webinterface.py index df7ad67f..2612a446 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2840,19 +2840,20 @@ def htmlCalendarDay(translate: {}, \ calendarStr+='\n' calendarStr+='
\n' - eventTime=None - eventDescription=None - eventPlace=None - for ev in dayEvents: - if ev['type']=='Event': - if ev.get('startTime'): - eventDate=datetime.datetime.strptime(ev['startTime'],"%Y-%m-%dT%H:%M:%S%z") - eventTime=eventDate.strftime("%H:%M") - if ev.get('name'): - eventDescription=ev['name'] - elif ev['type']=='Place': - if ev.get('name'): - eventPlace=ev['name'] + for eventPost in dayEvents: + eventTime=None + eventDescription=None + eventPlace=None + for ev in eventPost: + if ev['type']=='Event': + if ev.get('startTime'): + eventDate=datetime.datetime.strptime(ev['startTime'],"%Y-%m-%dT%H:%M:%S%z") + eventTime=eventDate.strftime("%H:%M") + if ev.get('name'): + eventDescription=ev['name'] + elif ev['type']=='Place': + if ev.get('name'): + eventPlace=ev['name'] if eventTime and eventDescription and eventPlace: calendarStr+='