Skip to content
Snippets Groups Projects
Commit c459e94e authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Ajout appréciations dans bulletins BUT json.

parent a108c280
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ from flask import g, has_request_context, url_for ...@@ -16,7 +16,7 @@ from flask import g, has_request_context, url_for
from app import db from app import db
from app.comp.moy_mod import ModuleImplResults from app.comp.moy_mod import ModuleImplResults
from app.comp.res_but import ResultatsSemestreBUT from app.comp.res_but import ResultatsSemestreBUT
from app.models import Evaluation, FormSemestre, Identite, ModuleImpl from app.models import BulAppreciations, Evaluation, FormSemestre, Identite, ModuleImpl
from app.models.groups import GroupDescr from app.models.groups import GroupDescr
from app.models.ues import UniteEns from app.models.ues import UniteEns
from app.scodoc import sco_bulletins, sco_utils as scu from app.scodoc import sco_bulletins, sco_utils as scu
...@@ -466,6 +466,11 @@ class BulletinBUT: ...@@ -466,6 +466,11 @@ class BulletinBUT:
semestre_infos.update( semestre_infos.update(
sco_bulletins_json.dict_decision_jury(etud, formsemestre) sco_bulletins_json.dict_decision_jury(etud, formsemestre)
) )
# Ajoute appréciations
appreciations = BulAppreciations.get_appreciations_list(
formsemestre.id, etud.id
)
d["appreciation"] = [appr.to_dict() for appr in appreciations]
if d["etat_inscription"] == scu.INSCRIT: if d["etat_inscription"] == scu.INSCRIT:
# moyenne des moyennes générales du semestre # moyenne des moyennes générales du semestre
semestre_infos["notes"] = { semestre_infos["notes"] = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment