Commit f999bbe8 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team
Browse files

controllers/file.py fixed database update for save_info

parent 1c158b78
...@@ -283,7 +283,7 @@ def save_info(): ...@@ -283,7 +283,7 @@ def save_info():
row = db.sequence_file[sequence_file_id] row = db.sequence_file[sequence_file_id]
if row is not None: if row is not None:
if auth.can_modify_patient(row.patient_id): if auth.can_modify_patient(row.patient_id):
row = dict(info = request.vars["info"]) db.sequence_file[sequence_file_id] = dict(info = request.vars["info"])
res = {"success": True, res = {"success": True,
"message": "The changes have been saved"} "message": "The changes have been saved"}
......
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