diff --git a/app/scodoc/sco_dept.py b/app/scodoc/sco_dept.py index f948ec31d..a89f2184b 100644 --- a/app/scodoc/sco_dept.py +++ b/app/scodoc/sco_dept.py @@ -48,6 +48,7 @@ from app.scodoc import sco_users def index_html(showcodes=0, showsemtable=0): "Page accueil département (liste des semestres)" + showcodes = int(showcodes) showsemtable = int(showsemtable) H = [] @@ -78,7 +79,7 @@ def index_html(showcodes=0, showsemtable=0): # Responsable de formation: sco_formsemestre.sem_set_responsable_name(sem) - if showcodes == "1": + if showcodes: sem["tmpcode"] = "