Code cleanup
Removed non-required conversion of event time as the icalendar module now handles this task
This commit is contained in:
parent
22fbce4758
commit
94dd38f880
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user