Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ef552710
Commit
ef552710
authored
Jul 08, 2016
by
Mikaël Salson
Browse files
file.py: Fix undefined patient_sample_set_id
Because of code duplication, also apply fix of
b035dd95
parent
b035dd95
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/file.py
View file @
ef552710
...
...
@@ -315,9 +315,10 @@ def edit_form():
id_sample_set_membership_patient
=
db
.
sample_set_membership
.
insert
(
sample_set_id
=
patient_sample_set_id
,
sequence_file_id
=
request
.
vars
[
"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
}
res
=
{
"file_id"
:
request
.
vars
[
"id"
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment