Fix for incorrect (duplicate) event entries.

This commit is contained in:
Ace 2020-02-16 22:43:13 +01:00 committed by GitHub
parent ade04c4ca0
commit 860f62d501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ def generate_image():
at_in_your_language, event.begin.format('HH:mm' if hours == '24' else
'hh:mm a'), event.name))
if event.begin.day == now.replace(days=1).day:
elif event.begin.day == now.replace(days=1).day:
if event.all_day:
event_list.append('{}: {}'.format(tomorrow_in_your_language, event.name))
else:
@ -178,7 +178,7 @@ def generate_image():
at_in_your_language, event.begin.format('HH:mm' if hours == '24' else
'hh:mm a'), event.name))
if event.end > after_two_days:
elif event.begin > after_two_days:
if event.all_day:
event_list.append('{}: {}'.format(event.begin.format('D MMM'), event.name))
else: