Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MrApplejuice authored and cdubz committed Jan 17, 2022
1 parent d348142 commit 8275d18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/timeline.py
Expand Up @@ -26,7 +26,10 @@ def get_objects(date, child=None):

explicit_type_ordering = {'start': 0, 'end': 1}
events.sort(
key=lambda x: (x['time'], explicit_type_ordering.get(x.get('type'), -1)),
key=lambda x: (
x['time'],
explicit_type_ordering.get(x.get('type'), -1),
),
reverse=True,
)

Expand Down

0 comments on commit 8275d18

Please sign in to comment.