1
This commit is contained in:
parent
ec3121f6b5
commit
3942ae17ae
@ -93,7 +93,7 @@ async def read_report(
|
||||
if item['_id'] in added_ids:
|
||||
item['added'] = True
|
||||
item['show_config'] = added_ids[item['_id']]
|
||||
reports = sorted(reports, key=lambda x: x.get('sorted', 999))
|
||||
reports = sorted(reports, key=lambda x: x.get('show_config', {}).get('sort',999))
|
||||
|
||||
return schemas.Msg(code=0, msg='ok', data=reports)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user