Commit ca550647 authored by Thonier Florian's avatar Thonier Florian
Browse files

Merge branch 'feature-sc/hotfix-prod-server-getReads-refix' into 'prod-server'

Feature sc/hotfix prod server get reads refix

See merge request !1283
parents aaad0610 b5518a4a
Pipeline #740601 passed with stages
in 83 minutes and 58 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