Commit 3a132b6d authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'feature-s/5108-bug-in-download-of-results-artifact-files' into 'dev'

Resolve "Bug in download of results artifact files"

Closes #5108

See merge request !1276
parents 55be9905 ae417a62
Pipeline #734116 failed with stages
in 60 minutes and 15 seconds
......@@ -121,7 +121,14 @@ def download():
try:
results_id = int(request.vars["results_file_id"])
query = db( (db.results_file.id == request.vars["results_file_id"]) ).select(db.results_file.id, db.results_file.hidden, db.results_file.data_file)
filepath = defs.DIR_RESULTS + query[0].data_file
if query[0].hidden == True:
# If hidden, only result file is important (getReads)
filepath = defs.DIR_RESULTS + query[0].data_file
else: # else download given file
olddir = defs.DIR_OUT_VIDJIL_ID % results_id
filepath = olddir + request.vars['filename']
log.info("Downloaded results file", extra={'user_id': auth.user.id,
'record_id': request.vars["results_file_id"],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment