mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add a sorting lambda function when sorting the backups list (#562)
* Add a sorting lambda function when sorting the backups list * Update backup.py
This commit is contained in:
parent
8691017b46
commit
a16b6f08f5
1 changed files with 1 additions and 1 deletions
|
@ -2187,7 +2187,7 @@ def backup_list(with_info=False, human_readable=False):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
result.append(name)
|
result.append(name)
|
||||||
result.sort()
|
result.sort(key=lambda x: os.path.getctime(os.path.join(ARCHIVES_PATH, x+".tar.gz")))
|
||||||
|
|
||||||
if result and with_info:
|
if result and with_info:
|
||||||
d = OrderedDict()
|
d = OrderedDict()
|
||||||
|
|
Loading…
Add table
Reference in a new issue