From 2852255227ccae90e39f348947e8aa6198c864f0 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 22 Aug 2021 00:28:17 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20passage=20=C3=A9tudiants=20suivant/pr?= =?UTF-8?q?=C3=A9c=C3=A9dent=20en=20mode=20jury?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_formsemestre_validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_formsemestre_validation.py b/app/scodoc/sco_formsemestre_validation.py index e98f2ed480..00d80655b5 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):