Skip to content

Commit

Permalink
Fix for incorrect (duplicate) event entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
aceisace authored Feb 16, 2020
1 parent ade04c4 commit 860f62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/inkycal_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ 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:
event_list.append('{0} {1} {2} : {3}'.format(tomorrow_in_your_language,
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:
Expand Down

0 comments on commit 860f62d

Please sign in to comment.