Code cleanup

Removed non-required conversion of event time as the icalendar module now handles this task
This commit is contained in:
Ace 2019-12-11 23:24:52 +01:00 committed by GitHub
parent 22fbce4758
commit 94dd38f880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = []