Commit 2bae1863 authored by Ryan Herbert's avatar Ryan Herbert
Browse files redirect to sample_set after upload

redirects to a specific sample_set rather than a list of sample_types.
Takes the first sample_set from the 'global' list of sets.

See #3091
parent e9c9cdca
Pipeline #19984 failed with stages
in 42 seconds
......@@ -283,10 +283,10 @@ def submit():
'table_name': "sequence_file"})
if not error:
set_type = data['sets'][0]['type']
set_id = data['sets'][0]['id']
res = { "file_ids": [f['id'] for f in data['file']],
"redirect": "sample_set/all",
"args" : { "type" : set_type},
"redirect": "sample_set/index",
"args" : { "id" : set_id, "config_id": -1},
"message": "successfully added/edited file(s)"}
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
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