1
0
forked from ScoDoc/ScoDoc

Fix: tri groupes sans numeros

This commit is contained in:
Emmanuel Viennet 2023-01-02 09:03:42 -03:00 committed by iziram
parent f3b1b8a3cb
commit 16f953caf6

View File

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