diff --git a/app/scodoc/sco_formsemestre_validation.py b/app/scodoc/sco_formsemestre_validation.py index e98f2ed4..00d80655 100644 --- a/app/scodoc/sco_formsemestre_validation.py +++ b/app/scodoc/sco_formsemestre_validation.py @@ -70,9 +70,9 @@ def formsemestre_validation_etud_form( formsemestre_id ) # > get_table_moyennes_triees, get_etud_decision_sem T = nt.get_table_moyennes_triees() - if not etudid and not etud_index: + if not etudid and etud_index is None: raise ValueError("formsemestre_validation_etud_form: missing argument etudid") - if etud_index: + if etud_index is not None: etud_index = int(etud_index) # cherche l'etudid correspondant if etud_index < 0 or etud_index >= len(T):