Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
2fa42375
Commit
2fa42375
authored
1 month ago
by
Paul Milleville
Browse files
Options
Downloads
Patches
Plain Diff
Try ajout des étudiants au groupes correspondants
parent
f045d2ca
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/scodoc/sco_synchro_etuds.py
+8
-3
8 additions, 3 deletions
app/scodoc/sco_synchro_etuds.py
with
8 additions
and
3 deletions
app/scodoc/sco_synchro_etuds.py
+
8
−
3
View file @
2fa42375
...
...
@@ -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
)
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment