Fix regression: inscriptions modules si pas de parcours

This commit is contained in:
Emmanuel Viennet 2023-05-30 01:15:48 +02:00 committed by iziram
parent 1c7ee4b68c
commit 83720425d4

View File

@ -553,8 +553,11 @@ def _list_but_ue_inscriptions(res: NotesTableCompat, read_only: bool = True) ->
>{etud.nomprenom}</a></td>"""
)
# 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"""<td class="parcours">{parcours_name}</td>""")
# UEs:
for ue in ues: