Skip to content

Commit

Permalink
[UK] Sort upcoming by provided sort order.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Sep 12, 2024
1 parent 4d73539 commit 172ce8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/future-fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def fetch_url(date):
def get_calendar_events():
date = datetime.date.today()
data = fetch_url(date)
data = sorted(data, key=lambda x: x['StartDate'] + x['StartTime'])
data = sorted(data, key=lambda x: x['StartDate'] + str(x['SortOrder']))
for event in data:
yield Entry(event)

Expand Down

0 comments on commit 172ce8b

Please sign in to comment.