Skip to content
Snippets Groups Projects
Verified Commit 6613f086 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix lint

parent cf1661e7
No related branches found
No related tags found
1 merge request!103Update pyproject.toml
Pipeline #194519 failed
......@@ -14,13 +14,11 @@ def get_current_events(calendar: Calendar, limit: int = 5) -> list:
:param limit: Count of events
:return: List of upcoming events
"""
i: int = 0
events: list = []
for event in calendar.timeline.start_after(timezone.now()):
for i, event in enumerate(calendar.timeline.start_after(timezone.now())):
# Check for limit
if i >= limit:
break
i += 1
if event.all_day:
# The last day in all day events is excluded
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment