From 94dd38f88079dfbf5c88031f0bb8c6759d94dff1 Mon Sep 17 00:00:00 2001 From: Ace Date: Wed, 11 Dec 2019 23:24:52 +0100 Subject: [PATCH] Code cleanup Removed non-required conversion of event time as the icalendar module now handles this task --- Inky-Calendar/modules/inkycal_calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Inky-Calendar/modules/inkycal_calendar.py b/Inky-Calendar/modules/inkycal_calendar.py index 20a5feb..99f7718 100644 --- a/Inky-Calendar/modules/inkycal_calendar.py +++ b/Inky-Calendar/modules/inkycal_calendar.py @@ -116,9 +116,9 @@ def main(): if show_events == True: """Filter events which begin before the end of this month""" upcoming_events = fetch_events() + calendar_events = [events for events in upcoming_events if - events.begin.to(get_tz()) < month_end and - events.begin.month == now.month] + events.begin < month_end and events.begin.month == now.month] """Find days with events in the current month""" days_with_events = []