Skip to content
Snippets Groups Projects
Commit 29f28984 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Better sorting

parent b28070b6
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,10 @@ def trigger():
@requires_auth
def logs():
files = OrderedDict()
for filename in sorted(glob(join(app.root_path, LOGS_PATH, "MSG*.log"))):
filenames = sorted(glob(join(app.root_path, LOGS_PATH, "MSG*.log")),
reverse=True)
main_log = filenames.pop(-1)
for filename in [main_log] + filenames:
files[basename(filename)] = getsize(filename)
return render_template('logs.html', files=files)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment