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
bde63253
Commit
bde63253
authored
1 year ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Enrichi tableau jury BUT PV
parent
05773476
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_pv.py
+25
-8
25 additions, 8 deletions
app/but/jury_but_pv.py
with
25 additions
and
8 deletions
app/but/jury_but_pv.py
+
25
−
8
View file @
bde63253
...
...
@@ -56,7 +56,17 @@ def pvjury_page_but(formsemestre_id: int, fmt="html"):
line_sep
=
"
\n
"
rows
,
titles
=
pvjury_table_but
(
formsemestre
,
line_sep
=
line_sep
)
if
fmt
.
startswith
(
"
xls
"
):
titles
[
"
ects_but
"
]
=
"
Total ECTS BUT
"
titles
.
update
(
{
"
etudid
"
:
"
etudid
"
,
"
code_nip
"
:
"
nip
"
,
"
code_ine
"
:
"
ine
"
,
"
ects_but
"
:
"
Total ECTS BUT
"
,
"
civilite
"
:
"
Civ.
"
,
"
nom
"
:
"
Nom
"
,
"
prenom
"
:
"
Prénom
"
,
}
)
# Style excel... passages à la ligne sur \n
xls_style_base
=
sco_excel
.
excel_make_style
()
xls_style_base
[
"
alignment
"
]
=
Alignment
(
wrapText
=
True
,
vertical
=
"
top
"
)
...
...
@@ -116,7 +126,7 @@ def pvjury_table_but(
"
pas de référentiel de compétences associé à la formation de ce semestre !
"
)
titles
=
{
"
nom
"
:
"
Code
"
if
anonymous
else
"
Nom
"
,
"
nom
_pv
"
:
"
Code
"
if
anonymous
else
"
Nom
"
,
"
cursus
"
:
"
Cursus
"
,
"
ects
"
:
"
ECTS
"
,
"
ues
"
:
"
UE validées
"
,
...
...
@@ -146,17 +156,17 @@ def pvjury_table_but(
ects_but_valides
=
but_ects_valides
(
etud
,
referentiel_competence_id
)
row
=
{
"
nom
"
:
(
"
nom
_pv
"
:
(
etud
.
code_ine
or
etud
.
code_nip
or
etud
.
id
if
anonymous
# Mode anonyme: affiche INE ou sinon NIP, ou id
else
etud
.
etat_civil_pv
(
line_sep
=
line_sep
,
with_paragraph
=
with_paragraph_nom
)
),
"
_nom_order
"
:
etud
.
sort_key
,
"
_nom_target_attrs
"
:
f
'
class=
"
etudinfo
"
id=
"
{
etud
.
id
}
"'
,
"
_nom_td_attrs
"
:
f
'
id=
"
{
etud
.
id
}
"
class=
"
etudinfo
"'
,
"
_nom_target
"
:
url_for
(
"
_nom_
pv_
order
"
:
etud
.
sort_key
,
"
_nom_
pv_
target_attrs
"
:
f
'
class=
"
etudinfo
"
id=
"
{
etud
.
id
}
"'
,
"
_nom_
pv_
td_attrs
"
:
f
'
id=
"
{
etud
.
id
}
"
class=
"
etudinfo
"'
,
"
_nom_
pv_
target
"
:
url_for
(
"
scolar.fiche_etud
"
,
scodoc_dept
=
g
.
scodoc_dept
,
etudid
=
etud
.
id
,
...
...
@@ -175,9 +185,16 @@ def pvjury_table_but(
if
deca
else
""
),
# pour exports excel seulement:
"
civilite
"
:
etud
.
civilite_etat_civil_str
,
"
nom
"
:
etud
.
nom
,
"
prenom
"
:
etud
.
prenom_etat_civil
or
etud
.
prenom
or
""
,
"
etudid
"
:
etud
.
id
,
"
code_nip
"
:
etud
.
code_nip
,
"
code_ine
"
:
etud
.
code_ine
,
}
if
deca
.
valide_diplome
()
or
not
only_diplome
:
rows
.
append
(
row
)
rows
.
sort
(
key
=
lambda
x
:
x
[
"
_nom_order
"
])
rows
.
sort
(
key
=
lambda
x
:
x
[
"
_nom_
pv_
order
"
])
return
rows
,
titles
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