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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
f4277a13
Commit
f4277a13
authored
2 years ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Jury BUT: effacement décision année + 2 petits bugs mineurs
parent
8156cce4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/but/jury_but.py
+5
-5
5 additions, 5 deletions
app/but/jury_but.py
with
5 additions
and
5 deletions
app/but/jury_but.py
+
5
−
5
View file @
f4277a13
...
...
@@ -931,7 +931,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
# XXX efface les validations émise depuis ce semestre
# et pas toutes celles concernant cette l'année...
# (utiliser formation_id pour changer cette politique)
formsemestre_id
=
self
.
formsemestre
_impair
.
id
,
formsemestre_id
=
self
.
formsemestre
.
id
,
ordre
=
self
.
annee_but
,
)
for
validation
in
validations
:
...
...
@@ -1286,7 +1286,7 @@ class DecisionsProposeesRCUE(DecisionsProposees):
sco_cache
.
invalidate_formsemestre
(
formsemestre_id
=
validation_rcue
.
formsemestre_id
)
el
se
:
el
if
ue1
and
ue2
:
# Crée nouvelle validation
validation_rcue
=
ApcValidationRCUE
(
etudid
=
self
.
etud
.
id
,
ue1_id
=
ue1
.
id
,
ue2_id
=
ue2
.
id
,
code
=
sco_codes
.
ADSUP
...
...
@@ -1380,20 +1380,20 @@ class DecisionsProposeesRCUE(DecisionsProposees):
"
Impossible de valider le niveau de compétence inférieur: pas 2 UEs associées
'"
,
"
warning
"
,
)
return
return
[],
None
,
None
ues_impaires
=
[
ue
for
ue
in
ues
if
ue
.
semestre_idx
%
2
]
if
len
(
ues_impaires
)
!=
1
:
flash
(
"
Impossible de valider le niveau de compétence inférieur: pas d
'
UE impaire associée
"
)
return
return
[],
None
,
None
ue1
=
ues_impaires
[
0
]
ues_paires
=
[
ue
for
ue
in
ues
if
not
ue
.
semestre_idx
%
2
]
if
len
(
ues_paires
)
!=
1
:
flash
(
"
Impossible de valider le niveau de compétence inférieur: pas d
'
UE paire associée
"
)
return
return
[],
None
,
None
ue2
=
ues_paires
[
0
]
return
ues
,
ue1
,
ue2
...
...
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