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
668eeb8e
Commit
668eeb8e
authored
1 year ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
PV de jury (et lettres): listes les validations d'UE antérieures. Closes #946
parent
34aab0a4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
app/but/jury_but.py
+37
-1
37 additions, 1 deletion
app/but/jury_but.py
app/but/jury_but_pv.py
+1
-1
1 addition, 1 deletion
app/but/jury_but_pv.py
app/scodoc/sco_formsemestre_validation.py
+2
-2
2 additions, 2 deletions
app/scodoc/sco_formsemestre_validation.py
sco_version.py
+1
-1
1 addition, 1 deletion
sco_version.py
with
41 additions
and
5 deletions
app/but/jury_but.py
+
37
−
1
View file @
668eeb8e
...
...
@@ -64,6 +64,7 @@ import re
import
numpy
as
np
from
flask
import
flash
,
g
,
url_for
import
sqlalchemy
as
sa
from
app
import
db
from
app
import
log
...
...
@@ -83,6 +84,7 @@ from app.models.but_validations import (
ApcValidationRCUE
,
)
from
app.models.etudiants
import
Identite
from
app.models.formations
import
Formation
from
app.models.formsemestre
import
FormSemestre
from
app.models.ues
import
UniteEns
from
app.models.validations
import
ScolarFormSemestreValidation
...
...
@@ -90,6 +92,7 @@ from app.scodoc import sco_cache
from
app.scodoc
import
codes_cursus
as
sco_codes
from
app.scodoc.codes_cursus
import
(
code_rcue_validant
,
code_ue_validant
,
BUT_CODES_ORDER
,
CODES_RCUE_VALIDES
,
CODES_UE_VALIDES
,
...
...
@@ -986,6 +989,36 @@ class DecisionsProposeesAnnee(DecisionsProposees):
pour PV jurys
"""
validations
=
[]
# Validations antérieures émises par ce formsemestre
for
res
in
(
self
.
res_impair
,
self
.
res_pair
):
if
res
:
validations_anterieures
=
(
ScolarFormSemestreValidation
.
query
.
filter_by
(
etudid
=
self
.
etud
.
id
,
formsemestre_id
=
res
.
formsemestre
.
id
)
.
filter
(
ScolarFormSemestreValidation
.
semestre_id
!=
res
.
formsemestre
.
semestre_id
)
.
join
(
UniteEns
)
.
join
(
Formation
)
.
filter_by
(
formation_code
=
res
.
formsemestre
.
formation
.
formation_code
)
.
order_by
(
sa
.
desc
(
UniteEns
.
semestre_idx
),
UniteEns
.
acronyme
,
sa
.
desc
(
ScolarFormSemestreValidation
.
event_date
),
)
.
all
()
)
if
validations_anterieures
:
validations
.
append
(
"
,
"
.
join
(
v
.
ue
.
acronyme
for
v
in
validations_anterieures
if
v
and
v
.
ue
and
code_ue_validant
(
v
.
code
)
)
)
# Validations des UEs des deux semestres de l'année
for
res
in
(
self
.
res_impair
,
self
.
res_pair
):
if
res
:
dec_ues
=
[
...
...
@@ -994,7 +1027,10 @@ class DecisionsProposeesAnnee(DecisionsProposees):
if
ue
.
type
==
UE_STANDARD
and
ue
.
id
in
self
.
decisions_ues
]
valids
=
[
dec_ue
.
descr_validation
()
for
dec_ue
in
dec_ues
]
# présentation de la liste des UEs:
if
valids
:
validations
.
append
(
"
,
"
.
join
(
v
for
v
in
valids
if
v
))
return
line_sep
.
join
(
validations
)
def
descr_pb_coherence
(
self
)
->
list
[
str
]:
...
...
This diff is collapsed.
Click to expand it.
app/but/jury_but_pv.py
+
1
−
1
View file @
668eeb8e
...
...
@@ -8,7 +8,7 @@
"""
from
flask
import
g
,
request
,
url_for
from
openpyxl.styles
import
Font
,
Border
,
Side
,
Alignment
,
PatternFill
from
openpyxl.styles
import
Alignment
from
app
import
log
from
app.but
import
jury_but
...
...
This diff is collapsed.
Click to expand it.
app/scodoc/sco_formsemestre_validation.py
+
2
−
2
View file @
668eeb8e
...
...
@@ -806,7 +806,7 @@ def formsemestre_recap_parcours_table(
H
.
append
(
f
"""
<td class=
"
sem_ects_tit
"
><a title=
"
crédit acquis
"
>ECTS:</a></td>
<td class=
"
sem_ects
"
>
{
pv
.
get
(
"
sum_ects
"
,
0
)
:
2.
2
g
}
/
{
etud_ects_infos
[
"
ects_total
"
]
:
2.
2
g
}
pv
.
get
(
"
sum_ects
"
,
0
)
:
2.
3
g
}
/
{
etud_ects_infos
[
"
ects_total
"
]
:
2.
3
g
}
</td>
<td class=
"
rcp_abs
"
></td>
"""
...
...
@@ -819,7 +819,7 @@ def formsemestre_recap_parcours_table(
ects_pot
=
ue_status
[
"
ects_pot
"
]
H
.
append
(
f
"""
<td class=
"
ue
"
title=
"
{
ects
:
2.
2
g
}
/
{
ects_pot
:
2.
2
g
}
ECTS
"
>
{
ects
:
2.
2
g
}
</td>
"""
title=
"
{
ects
:
2.
3
g
}
/
{
ects_pot
:
2.
3
g
}
ECTS
"
>
{
ects
:
2.
3
g
}
</td>
"""
)
else
:
H
.
append
(
"""
<td class=
"
ue
"
></td>
"""
)
...
...
This diff is collapsed.
Click to expand it.
sco_version.py
+
1
−
1
View file @
668eeb8e
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION
=
"
9.6.98
1
"
SCOVERSION
=
"
9.6.98
2
"
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