sorting dirs not enough in iter_folder..

This commit is contained in:
ville rantanen
2019-10-24 19:54:12 +03:00
parent 232e99fee6
commit 18ecc3668e

View File

@@ -445,6 +445,7 @@ def list_view(name, token = None):
'token': get_direct_token(share, file), 'token': get_direct_token(share, file),
}) })
files.append(status) files.append(status)
files.sort(key = lambda x: x['name'])
# direct share links not allowed if password isnt set # direct share links not allowed if password isnt set
allow_direct = get_or_none('direct_links', share) if get_or_none('pass_hash', share) else False allow_direct = get_or_none('direct_links', share) if get_or_none('pass_hash', share) else False
upload = get_or_none('upload', share) upload = get_or_none('upload', share)