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

Try ajout des étudiants au groupes correspondants

parent f045d2ca
No related branches found
No related tags found
No related merge requests found
......@@ -284,12 +284,17 @@ def formsemestre_synchro_etuds(
sco_groups.partition_create(formsemestre_id=formsemestre_id, partition_name="Groupe Apogée")
print(partition_id)
print("LES GROUPES")
print(sco_groups.get_partition_groups(partition=sco_groups.get_partition(partition_id)))
for etu in nip_etape:
if etu[1] not in sco_groups.get_partition_groups(partition=sco_groups.get_partition(partition_id)):
sco_groups.create_group(partition_id=partition_id,group_name=etu[1])
#sco_groups.set_group(etudid=sco_etud.get_etud_info(code_nip=etu[0]), group_id=sco_groups.get_grou)
# Recherche du group_id correspondant
group_id = None
for group in sco_groups.get_partition_groups(partition=sco_groups.get_partition(partition_id)):
if group['group_name'] == etu[1]:
group_id = group['group_id']
break
sco_groups.set_group(etudid=nip2etudid(etu[0]), group_id=group_id)
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment