Fix result file order.

This commit is contained in:
Stephan Porada 2019-09-24 17:10:18 +02:00
parent a267de0867
commit b05718c03d

View File

@ -118,7 +118,7 @@ def job(job_id):
if job.status == 'complete': if job.status == 'complete':
files[file]['results'] = {} files[file]['results'] = {}
results_dir = os.path.join(dir, 'output', file) results_dir = os.path.join(dir, 'output', file)
for result in os.listdir(results_dir): for result in sorted(os.listdir(results_dir)):
result_type = result.rsplit(".", 1)[1] result_type = result.rsplit(".", 1)[1]
files[file]['results'][result_type] = {} files[file]['results'][result_type] = {}
files[file]['results'][result_type]['path'] = os.path.join( files[file]['results'][result_type]['path'] = os.path.join(