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
f189f9cd
Commit
f189f9cd
authored
1 month ago
by
Paul Milleville
Browse files
Options
Downloads
Patches
Plain Diff
controle de création de la partition
parent
aa614c53
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
+11
-9
11 additions, 9 deletions
app/scodoc/sco_synchro_etuds.py
with
11 additions
and
9 deletions
app/scodoc/sco_synchro_etuds.py
+
11
−
9
View file @
f189f9cd
...
...
@@ -269,16 +269,18 @@ def formsemestre_synchro_etuds(
list_partition
=
sco_groups
.
get_partitions_list
(
formsemestre_id
=
formsemestre_id
)
partition_id
=
None
for
partition
in
list_partition
:
# Vérifie si une partition avec le nom "Groupe Apogée" existe déjà
partition_exists
=
False
for
partition
in
partitions
:
if
partition
[
'
partition_name
'
]
==
'
Groupe Apogée
'
:
partition_id
=
partition
[
'
partition_id
'
]
break
print
(
partition_id
)
sco_groups
.
partition_create
(
formsemestre_id
=
formsemestre_id
,
partition_name
=
"
Groupe Apogée
"
)
partition_exists
=
True
break
# La partition existe déjà, on peut arrêter la recherche
# Si la partition n'existe pas, on la crée
if
not
partition_exists
:
formsemestre_id
=
1031
# Remplace cette valeur si nécessaire
# Appel à la méthode de création de partition
sco_groups
.
partition_create
(
formsemestre_id
=
formsemestre_id
,
partition_name
=
"
Groupe Apogée
"
)
#
...
...
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