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

file.py renaming some variables

parent a64a3103
......@@ -214,7 +214,7 @@ def add_form():
originating_id = run_sample_set_id
elif request.vars['sample_type'] == 'patient':
originating_id = patient_sample_set_id
else :
elif request.vars['sample_type'] == 'generic' :
originating_id = generic_sample_set_id
redirect_args = {"id" : originating_id}
......@@ -340,7 +340,7 @@ def edit_form():
error = ""
patient_id = None
run_id = None
sample_set_id = None
generic_id = None
if request.vars['patient_id'] != '' :
patient_id = int(request.vars['patient_id'].split('(')[-1][:-1])
......@@ -399,8 +399,8 @@ def edit_form():
originating_id = run_sample_set_id
elif request.vars['sample_type'] == 'patient':
originating_id = patient_sample_set_id
else :
originating_id = sample_set_id
elif request.vars['sample_type'] == 'generic':
originating_id = generic_sample_set_id
redirect_args = {"id" : originating_id}
res = {"file_id" : request.vars["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