Commit 0508d34e authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

controllers/patient.py: config_id is the string 'None' in some cases

This commit prevents a server error.
This should be further investigated.
parent bf0c408a
......@@ -37,7 +37,7 @@ def info():
next_patient()
patient = db.patient[request.vars["id"]]
if request.vars["config_id"] and request.vars["config_id"] != "-1" :
if request.vars["config_id"] and request.vars["config_id"] != "-1" and request.vars["config_id"] != "None":
config_id = long(request.vars["config_id"])
patient_name = vidjil_utils.anon_names(patient.id, patient.first_name, patient.last_name)
config_name = db.config[request.vars["config_id"]].name
......
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