Commit 73cfdc74 authored by Ryan Herbert's avatar Ryan Herbert set sample_type on redirect after upload

Redirects the user to the list of sample types they most likely came
from when adding files.
parent 8d413c14
......@@ -280,8 +280,10 @@ def submit():
'table_name': "sequence_file"})
if not error:
set_type = data['sets'][0]['type']
res = { "file_ids": [f['id'] for f in data['file']],
"redirect": "sample_set/all",
"args" : { "type" : set_type},
"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