Commit dab56f09 authored by Marc Duez's avatar Marc Duez
Browse files

server : controller file redirect to the correct page after file deletion

parent 0c9ace0e
......@@ -126,9 +126,12 @@ def delete():
response.headers['Access-Control-Allow-Credentials'] = 'true'
response.headers['Access-Control-Max-Age'] = 86400
patient_id = db.sequence_file[request.vars["id"]].patient_id
db( == request.vars["id"]).delete()
db(db.data_file.sequence_file_id == request.vars["id"]).delete()
res = {"redirect": "patient/index",
res = {"redirect": "patient/info",
"args" : { "id" : patient_id},
"message": "sequence file deleted"}
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
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