Change file download view.

This commit is contained in:
Patrick Jentsch
2019-09-04 14:53:23 +02:00
parent bb26cba009
commit 64475afc41
2 changed files with 30 additions and 24 deletions

View File

@ -110,8 +110,9 @@ def job(job_id):
files[file]['results'] = {}
results_dir = os.path.join(dir, 'output', file)
for result in os.listdir(results_dir):
files[file]['results'][result] = {}
files[file]['results'][result]['path'] = os.path.join(
result_type = result.rsplit(".", 1)[1]
files[file]['results'][result_type] = {}
files[file]['results'][result_type]['path'] = os.path.join(
'output', files[file]['path'], result
)