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
830e2f4b
Commit
830e2f4b
authored
11 months ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Fix: listes validations UEs en BUT avec UE externes (donc ECTS fiche étud)
parent
9b825c0f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/but/cursus_but.py
+14
-7
14 additions, 7 deletions
app/but/cursus_but.py
sco_version.py
+1
-1
1 addition, 1 deletion
sco_version.py
with
15 additions
and
8 deletions
app/but/cursus_but.py
+
14
−
7
View file @
830e2f4b
...
...
@@ -408,7 +408,7 @@ def but_validations_ues(
etud
:
Identite
,
referentiel_competence_id
:
int
,
annees_but
:
None
|
Iterable
[
str
]
=
None
,
)
->
Query
:
)
->
list
[
ScolarFormSemestreValidation
]
:
"""
Query les validations d
'
UEs pour cet étudiant
dans des UEs appartenant à ce référentiel de compétence
et en option pour les années BUT indiquées.
...
...
@@ -417,18 +417,25 @@ def but_validations_ues(
validations
=
(
ScolarFormSemestreValidation
.
query
.
filter_by
(
etudid
=
etud
.
id
)
.
filter
(
ScolarFormSemestreValidation
.
ue_id
!=
None
)
.
join
(
FormSemestre
,
ScolarFormSemestreValidation
.
formsemestre
)
.
join
(
UniteEns
)
.
join
(
ApcNiveau
)
)
# restreint à certaines années (utile pour les ECTS du DUT120)
if
annees_but
:
validations
=
validations
.
filter
(
ApcNiveau
.
annee
.
in_
(
annees_but
))
# restreint au référentiel de compétence et trie
return
(
validations
.
join
(
ApcCompetence
)
.
filter_by
(
referentiel_id
=
referentiel_competence_id
)
.
order_by
(
FormSemestre
.
semestre_id
,
UniteEns
.
numero
,
UniteEns
.
acronyme
)
# restreint au référentiel de compétence
validations
=
validations
.
join
(
ApcCompetence
).
filter_by
(
referentiel_id
=
referentiel_competence_id
)
# Tri (nb: fait en python pour gérer les validations externes qui n'ont pas de formsemestre)
return
sorted
(
validations
,
key
=
lambda
v
:
(
(
v
.
formsemestre
.
semestre_id
,
v
.
ue
.
numero
,
v
.
ue
.
acronyme
)
if
v
.
formsemestre
else
(
v
.
ue
.
semestre_idx
or
-
2
,
v
.
ue
.
numero
,
v
.
ue
.
acronyme
)
),
)
...
...
This diff is collapsed.
Click to expand it.
sco_version.py
+
1
−
1
View file @
830e2f4b
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION
=
"
9.7.
0
"
SCOVERSION
=
"
9.7.
1
"
SCONAME
=
"
ScoDoc
"
...
...
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