admin: fix chronological sort of logging files (#39363)
This commit is contained in:
parent
8b51e62e1e
commit
6f06588a86
|
@ -145,7 +145,7 @@ class LoggerDirectory(Directory):
|
|||
r += htmltext('<form id="other-log-select">')
|
||||
r += _('Select another logfile:')
|
||||
r += htmltext('<select name="logfile">')
|
||||
options.sort(lambda x,y: cmp(x['date'], y['date']))
|
||||
options.sort(key=lambda x: x['date'])
|
||||
options.reverse()
|
||||
for option in options:
|
||||
option['since'] = str(_('Since: %s') % option['date'])[:-4]
|
||||
|
|
Loading…
Reference in New Issue