Fix linting

This commit is contained in:
Paul Konstantin Gerke 2022-01-17 16:03:15 +01:00 committed by Christopher Charbonneau Wells
parent d34814260f
commit 8275d18d6c
1 changed files with 4 additions and 1 deletions

View File

@ -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,
)