From 8b2edca2575ace2eba3d7f5b294e9a07481f90d2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 7 Jan 2022 18:38:32 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20passage=20d'un=20semestre=20=C3=A0=20l'a?= =?UTF-8?q?utre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_inscr_passage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scodoc/sco_inscr_passage.py b/app/scodoc/sco_inscr_passage.py index d486b242..ab27ecda 100644 --- a/app/scodoc/sco_inscr_passage.py +++ b/app/scodoc/sco_inscr_passage.py @@ -292,6 +292,8 @@ def formsemestre_inscr_passage( etuds = [int(x) for x in etuds.split(",") if x] elif isinstance(etuds, int): etuds = [etuds] + elif etuds and isinstance(etuds[0], str): + etuds = [int(x) for x in etuds] auth_etuds_by_sem, inscrits, candidats = list_authorized_etuds_by_sem(sem) etuds_set = set(etuds)