Commit b035dd95 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

file.py fix undefined patient_sample_set_id

parent 2a954227
......@@ -160,9 +160,10 @@ def add_form():
id_sample_set_membership_patient = db.sample_set_membership.insert(sample_set_id=patient_sample_set_id,
sequence_file_id=id)
originating_id = patient_sample_set_id
if request.vars['sample_type'] == 'run':
originating_id = run_sample_set_id
else:
originating_id = patient_sample_set_id
redirect_args = {"id" : originating_id}
......
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