Skip to content
Snippets Groups Projects
Commit 66f90d06 authored by HeJ's avatar HeJ
Browse files

backoffice: make linter happy

parent 50aba3d4
Branches
Tags
No related merge requests found
...@@ -128,7 +128,7 @@ class ScheduleSourceImportDetailView(ScheduleAdminMixin, DetailView): ...@@ -128,7 +128,7 @@ class ScheduleSourceImportDetailView(ScheduleAdminMixin, DetailView):
if data := ctx['object'].data: if data := ctx['object'].data:
ctx['activity'] = sorted( ctx['activity'] = sorted(
data.get('_activity', []), data.get('_activity', []),
key=lambda item: (action2sort.get(item["action"], 99), type2sort.get(item["type"], 99), item["source_id"]), key=lambda item: (action2sort.get(item['action'], 99), type2sort.get(item['type'], 99), item['source_id']),
) )
else: else:
ctx['activity'] = None ctx['activity'] = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment