Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit a73981cd authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

controllers/default.py: default/run_request accepts 'grep_reads' in request.vars

parent 37a3693d
......@@ -129,6 +129,11 @@ def run_request():
id_patient = db.sequence_file[request.vars["sequence_file_id"]].patient_id
if "grep_reads" in request.vars:
grep_reads = request.vars["grep_reads"]
else:
grep_reads = None
if not auth.can_modify_patient(id_patient) :
error += "you do not have permission to launch process for this patient ("+str(id_patient)+"), "
......@@ -137,7 +142,7 @@ def run_request():
error += "you do not have permission to launch process for this config ("+str(id_config)+"), "
if error == "" :
res = schedule_run(request.vars["sequence_file_id"], request.vars["config_id"])
res = schedule_run(request.vars["sequence_file_id"], id_config, grep_reads)
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
else :
......
Markdown is supported
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