mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Sort logs display by start date
This commit is contained in:
parent
d310540a6f
commit
fb27b4d5f2
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ def log_display(file_name_list):
|
||||||
logger.error(m18n.n('log_does_exists', log="', '".join(file_name_list)))
|
logger.error(m18n.n('log_does_exists', log="', '".join(file_name_list)))
|
||||||
|
|
||||||
if len(result['logs']) > 0:
|
if len(result['logs']) > 0:
|
||||||
|
result['logs'] = sorted(result['logs'], key=lambda operation: operation['started_at'])
|
||||||
return result
|
return result
|
||||||
|
|
||||||
class Journal(object):
|
class Journal(object):
|
||||||
|
|
Loading…
Add table
Reference in a new issue