From 79d92dc9ac595860a4cabba78e3912d3ff091c9f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 30 May 2023 01:15:48 +0200 Subject: [PATCH] Fix regression: inscriptions modules si pas de parcours --- app/scodoc/sco_moduleimpl_inscriptions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_moduleimpl_inscriptions.py b/app/scodoc/sco_moduleimpl_inscriptions.py index c693c922..ec5ff86e 100644 --- a/app/scodoc/sco_moduleimpl_inscriptions.py +++ b/app/scodoc/sco_moduleimpl_inscriptions.py @@ -553,8 +553,11 @@ def _list_but_ue_inscriptions(res: NotesTableCompat, read_only: bool = True) -> >{etud.nomprenom}""" ) # Parcours: - group = partition_parcours.get_etud_group(etud.id) - parcours_name = group.group_name if group else "" + if partition_parcours: + group = partition_parcours.get_etud_group(etud.id) + parcours_name = group.group_name if group else "" + else: + parcours_name = "" H.append(f"""{parcours_name}""") # UEs: for ue in ues: