mirror of https://github.com/snachodog/mybuddy.git
Fix linting
This commit is contained in:
parent
d34814260f
commit
8275d18d6c
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue