Skip to content
Snippets Groups Projects
Commit 90c0586a authored by Paul Milleville's avatar Paul Milleville
Browse files

fix bug group name

parent dc8f8b77
Branches
No related tags found
No related merge requests found
...@@ -283,13 +283,12 @@ def formsemestre_synchro_etuds( ...@@ -283,13 +283,12 @@ def formsemestre_synchro_etuds(
# Appel à la méthode de création de partition # Appel à la méthode de création de partition
sco_groups.partition_create(formsemestre_id=formsemestre_id, partition_name="Groupe Apogée") sco_groups.partition_create(formsemestre_id=formsemestre_id, partition_name="Groupe Apogée")
print(partition_id) group_names = [group['group_name'] for group in sco_groups.get_partition(partition_id)]
for etu in nip_etape: for etu in nip_etape:
print(etu[1] not in sco_groups.get_partition_groups(partition=sco_groups.get_partition(partition_id))) print(etu[1] not in group_names)
print(etu[1]) print(etu[1])
print(sco_groups.get_partition_groups(partition=sco_groups.get_partition(partition_id))) print(group_names)
if etu[1] not in sco_groups.get_partition_groups(partition=sco_groups.get_partition(partition_id)): if etu[1] not in group_names:
sco_groups.create_group(partition_id=partition_id,group_name=etu[1]) sco_groups.create_group(partition_id=partition_id,group_name=etu[1])
# Recherche du group_id correspondant # Recherche du group_id correspondant
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment