diff --git a/app/but/bulletin_but.py b/app/but/bulletin_but.py index cf706008b1c047304cee6ab03f9cb30b47732ef6..4c482c6a531c2413c256d6f145dceb6b31e083f2 100644 --- a/app/but/bulletin_but.py +++ b/app/but/bulletin_but.py @@ -16,7 +16,7 @@ from flask import g, has_request_context, url_for from app import db from app.comp.moy_mod import ModuleImplResults 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.ues import UniteEns from app.scodoc import sco_bulletins, sco_utils as scu @@ -466,6 +466,11 @@ class BulletinBUT: semestre_infos.update( 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: # moyenne des moyennes générales du semestre semestre_infos["notes"] = {