diff --git a/app/scodoc/sco_page_etud.py b/app/scodoc/sco_page_etud.py index fc583aa5..552a28f2 100644 --- a/app/scodoc/sco_page_etud.py +++ b/app/scodoc/sco_page_etud.py @@ -279,6 +279,7 @@ def ficheEtud(etudid=None, REQUEST=None): l.append("") info["liste_inscriptions"] = "\n".join(l) info["link_bul_pdf"] = "" + info["link_inscrire_ailleurs"] = "" # Liste des annotations alist = [] diff --git a/app/scodoc/sco_synchro_etuds.py b/app/scodoc/sco_synchro_etuds.py index 2ac4ade4..73f0e4bf 100644 --- a/app/scodoc/sco_synchro_etuds.py +++ b/app/scodoc/sco_synchro_etuds.py @@ -126,9 +126,13 @@ def formsemestre_synchro_etuds( etuds = etuds.split(",") # vient du form de confirmation elif isinstance(etuds, int): etuds = [etuds] - if isinstance(inscrits_without_key, str): + if isinstance(inscrits_without_key, int): + inscrits_without_key = [inscrits_without_key] + elif isinstance(inscrits_without_key, str): inscrits_without_key = inscrits_without_key.split(",") - + elif not isinstance(inscrits_without_key, list): + raise ValueError("invalid type for inscrits_without_key") + inscrits_without_key = [int(x) for x in inscrits_without_key] ( etuds_by_cat, a_importer, @@ -200,31 +204,38 @@ def formsemestre_synchro_etuds( ) H.append("") - if a_desinscrire or a_desinscrire_without_key: + if a_desinscrire: H.append("