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
09ec53f5
Commit
09ec53f5
authored
1 year ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Ajout infos semestres dans bulletin classique JSON. Close #583
parent
3787e014
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/scodoc/sco_bulletins_json.py
+16
-1
16 additions, 1 deletion
app/scodoc/sco_bulletins_json.py
tests/ressources/results/formsemestre_resultat.json
+16
-0
16 additions, 0 deletions
tests/ressources/results/formsemestre_resultat.json
with
32 additions
and
1 deletion
app/scodoc/sco_bulletins_json.py
+
16
−
1
View file @
09ec53f5
...
@@ -89,7 +89,7 @@ def formsemestre_bulletinetud_published_dict(
...
@@ -89,7 +89,7 @@ def formsemestre_bulletinetud_published_dict(
version
=
"
long
"
,
version
=
"
long
"
,
)
->
dict
:
)
->
dict
:
"""
Dictionnaire representant les informations _publiees_ du bulletin de notes
"""
Dictionnaire representant les informations _publiees_ du bulletin de notes
Utilisé pour JSON
,
de
vrait l
'
être aussi pour XML. (todo)
Utilisé pour JSON de
s formations classiques (mais pas pour le XML, qui est deprecated).
version:
version:
short (sans les évaluations)
short (sans les évaluations)
...
@@ -169,6 +169,21 @@ def formsemestre_bulletinetud_published_dict(
...
@@ -169,6 +169,21 @@ def formsemestre_bulletinetud_published_dict(
pid
=
partition
[
"
partition_id
"
]
pid
=
partition
[
"
partition_id
"
]
partitions_etud_groups
[
pid
]
=
sco_groups
.
get_etud_groups_in_partition
(
pid
)
partitions_etud_groups
[
pid
]
=
sco_groups
.
get_etud_groups_in_partition
(
pid
)
# Il serait préférable de factoriser et d'avoir la même section
# "semestre" que celle des bulletins BUT.
etud_groups
=
sco_groups
.
get_etud_formsemestre_groups
(
etud
,
formsemestre
,
only_to_show
=
True
)
d
[
"
semestre
"
]
=
{
"
etapes
"
:
[
str
(
x
.
etape_apo
)
for
x
in
formsemestre
.
etapes
if
x
.
etape_apo
],
"
date_debut
"
:
formsemestre
.
date_debut
.
isoformat
(),
"
date_fin
"
:
formsemestre
.
date_fin
.
isoformat
(),
"
annee_universitaire
"
:
formsemestre
.
annee_scolaire_str
(),
"
numero
"
:
formsemestre
.
semestre_id
,
"
inscription
"
:
""
,
# inutilisé mais nécessaire pour le js de Seb.
"
groupes
"
:
[
group
.
to_dict
()
for
group
in
etud_groups
],
}
ues_stat
=
nt
.
get_ues_stat_dict
()
ues_stat
=
nt
.
get_ues_stat_dict
()
modimpls
=
nt
.
get_modimpls_dict
()
modimpls
=
nt
.
get_modimpls_dict
()
nbetuds
=
len
(
nt
.
etud_moy_gen_ranks
)
nbetuds
=
len
(
nt
.
etud_moy_gen_ranks
)
...
...
This diff is collapsed.
Click to expand it.
tests/ressources/results/formsemestre_resultat.json
+
16
−
0
View file @
09ec53f5
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"specialite"
:
""
,
"specialite"
:
""
,
"sort_key"
:
"fleury;madeleine"
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
"partitions"
:
{
"partitions"
:
{
...
@@ -107,6 +108,7 @@
...
@@ -107,6 +108,7 @@
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"specialite"
:
""
,
"specialite"
:
""
,
"sort_key"
:
"saunier;jacques"
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
"partitions"
:
{
"partitions"
:
{
...
@@ -163,6 +165,7 @@
...
@@ -163,6 +165,7 @@
"moy_sae_14_3"
:
"05.70"
,
"moy_sae_14_3"
:
"05.70"
,
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"lenfant;maxime"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -221,6 +224,7 @@
...
@@ -221,6 +224,7 @@
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"specialite"
:
""
,
"specialite"
:
""
,
"sort_key"
:
"cuny;camille"
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
"partitions"
:
{
"partitions"
:
{
...
@@ -277,6 +281,7 @@
...
@@ -277,6 +281,7 @@
"moy_sae_14_3"
:
"11.09"
,
"moy_sae_14_3"
:
"11.09"
,
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"mouton;claude"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -335,6 +340,7 @@
...
@@ -335,6 +340,7 @@
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"specialite"
:
""
,
"specialite"
:
""
,
"sort_key"
:
"regnier;patrick"
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
"partitions"
:
{
"partitions"
:
{
...
@@ -391,6 +397,7 @@
...
@@ -391,6 +397,7 @@
"moy_sae_14_3"
:
"05.17"
,
"moy_sae_14_3"
:
"05.17"
,
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"esteve;alix"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -448,6 +455,7 @@
...
@@ -448,6 +455,7 @@
"moy_sae_14_3"
:
"03.32"
,
"moy_sae_14_3"
:
"03.32"
,
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"gilles;maxime"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -505,6 +513,7 @@
...
@@ -505,6 +513,7 @@
"moy_sae_14_3"
:
"02.10"
,
"moy_sae_14_3"
:
"02.10"
,
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"naudin;simone"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -562,6 +571,7 @@
...
@@ -562,6 +571,7 @@
"moy_sae_14_3"
:
"07.17"
,
"moy_sae_14_3"
:
"07.17"
,
"moy_sae_15_3"
:
"~"
,
"moy_sae_15_3"
:
"~"
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"costa;sacha"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -619,6 +629,7 @@
...
@@ -619,6 +629,7 @@
"moy_sae_14_3"
:
""
,
"moy_sae_14_3"
:
""
,
"moy_sae_15_3"
:
""
,
"moy_sae_15_3"
:
""
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"gautier;gerard"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -676,6 +687,7 @@
...
@@ -676,6 +687,7 @@
"moy_sae_14_3"
:
""
,
"moy_sae_14_3"
:
""
,
"moy_sae_15_3"
:
""
,
"moy_sae_15_3"
:
""
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"villeneuve;francoise"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -733,6 +745,7 @@
...
@@ -733,6 +745,7 @@
"moy_sae_14_3"
:
""
,
"moy_sae_14_3"
:
""
,
"moy_sae_15_3"
:
""
,
"moy_sae_15_3"
:
""
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"schmitt;emmanuel"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -790,6 +803,7 @@
...
@@ -790,6 +803,7 @@
"moy_sae_14_3"
:
""
,
"moy_sae_14_3"
:
""
,
"moy_sae_15_3"
:
""
,
"moy_sae_15_3"
:
""
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"boutet;marguerite"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
@@ -848,6 +862,7 @@
...
@@ -848,6 +862,7 @@
"moy_sae_15_3"
:
""
,
"moy_sae_15_3"
:
""
,
"bac"
:
""
,
"bac"
:
""
,
"specialite"
:
""
,
"specialite"
:
""
,
"sort_key"
:
"rollin;derchen"
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
"partitions"
:
{
"partitions"
:
{
...
@@ -904,6 +919,7 @@
...
@@ -904,6 +919,7 @@
"moy_sae_14_3"
:
""
,
"moy_sae_14_3"
:
""
,
"moy_sae_15_3"
:
""
,
"moy_sae_15_3"
:
""
,
"bac"
:
""
,
"bac"
:
""
,
"sort_key"
:
"diot;camille"
,
"specialite"
:
""
,
"specialite"
:
""
,
"type_admission"
:
""
,
"type_admission"
:
""
,
"classement"
:
""
,
"classement"
:
""
,
...
...
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