Skip to content

Commit bccd79d

Browse files
committed
Fix sorting of events
This patch fixes the sorting order of events so that the next event is actually the next event and not the last scheduled event.
1 parent 3bf6df7 commit bccd79d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

occameracontrol/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def parse_calendar(self, cal) -> list[Event]:
8686
events.append(event)
8787

8888
# Make sure events are sorted
89-
return sorted(events, key=lambda e: e.start, reverse=True)
89+
return sorted(events, key=lambda e: e.start, reverse=False)
9090

9191
def update_calendar(self):
9292
'''Get a calendar update fro Opencast

0 commit comments

Comments
 (0)