reprise wip

This commit is contained in:
Jean-Marie Place 2024-06-30 06:15:50 +02:00
parent cf18e37926
commit 156066137f

View File

@ -39,6 +39,7 @@ from flask import request
from flask_login import current_user from flask_login import current_user
from app import db from app import db
from app.but import bulletin_but, cursus_but
from app.comp import res_sem from app.comp import res_sem
from app.comp.res_compat import NotesTableCompat from app.comp.res_compat import NotesTableCompat
from app.models import ( from app.models import (
@ -441,7 +442,13 @@ class Export:
# prenom=quote_xml_attr(etud.prenom), # prenom=quote_xml_attr(etud.prenom),
# civilite=quote_xml_attr(etud.civilite_str), # civilite=quote_xml_attr(etud.civilite_str),
# sexe=quote_xml_attr(etud.civilite_str), # compat # sexe=quote_xml_attr(etud.civilite_str), # compat
pass bulletins_sem = bulletin_but.BulletinBUT(self.formsemestre)
self.data_etud[etud.id]["bulletin_but"] = bulletins_sem.bulletin_etud(etud)
self.data_etud[etud.id]["cursus"] = cursus_but.EtudCursusBUT(
etud, self.formsemestre.formation
)
# self.data_etud[etud.id]["bulletin_sem"] = bulletins_sem.bulletin_etud(etud)
breakpoint()
def load_data(self): def load_data(self):
self.load_parcours() self.load_parcours()
@ -449,6 +456,7 @@ class Export:
self.data_etud[etud.id] = {} self.data_etud[etud.id] = {}
self.data_etud[etud.id]["etud"] = etud self.data_etud[etud.id]["etud"] = etud
self.data_etud[etud.id]["sems"] = {} self.data_etud[etud.id]["sems"] = {}
self.load_etu(etud)
session = sco_cursus.get_situation_etud_cursus(etud, self.formsemestre_id) session = sco_cursus.get_situation_etud_cursus(etud, self.formsemestre_id)
breakpoint() breakpoint()
self.data_etud[etud.id]["cursus"] = session.parcours self.data_etud[etud.id]["cursus"] = session.parcours