Commit a5c9c79e authored by Ryan Herbert's avatar Ryan Herbert
Browse files

file.py fix add file to generic sample_set

when adding a file to a generic sample set the sample set was not
selected by default due to the id being set incorrectly.
parent 0fce02b9
......@@ -37,7 +37,7 @@ def add():
run_id = None
generic_id = None
if sample_set.sample_type == "generic":
sample_set_id = db( db.generic.sample_set_id == request.vars["id"]).select()[0].id
generic_id = db( db.generic.sample_set_id == request.vars["id"]).select()[0].id
if sample_set.sample_type == "patient" :
patient_id = db( db.patient.sample_set_id == request.vars["id"]).select()[0].id
if sample_set.sample_type == "run" :
......
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