Fix: tri groupes sans numeros

This commit is contained in:
Emmanuel Viennet 2023-01-02 09:03:42 -03:00
parent 3fdb2597f5
commit 33a7abe012

View File

@ -364,11 +364,11 @@ class DisplayedGroupsInfos(object):
self.formsemestre = sem
self.members.extend(group_members)
groups_titles.append(group_tit)
if group["partition_name"] == None:
if group["partition_name"] is None:
self.tous_les_etuds_du_sem = True
else:
# liste les partitions explicitement sélectionnés (= des groupes de group_ids)
selected_partitions.add((group["numero"], group["partition_id"]))
selected_partitions.add((group["numero"] or 0, group["partition_id"]))
self.selected_partitions = [
x[1] for x in sorted(list(selected_partitions))