forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -69,13 +69,13 @@ def bulletin_but(formsemestre_id: int, etudid: int = None, fmt="html"):
|
|||||||
if fmt == "pdf":
|
if fmt == "pdf":
|
||||||
bul: dict = bulletins_sem.bulletin_etud_complet(etud)
|
bul: dict = bulletins_sem.bulletin_etud_complet(etud)
|
||||||
else: # la même chose avec un peu moins d'infos
|
else: # la même chose avec un peu moins d'infos
|
||||||
bul: dict = bulletins_sem.bulletin_etud(etud)
|
bul: dict = bulletins_sem.bulletin_etud(etud, force_publishing=True)
|
||||||
decision_ues = (
|
decision_ues = (
|
||||||
{x["acronyme"]: x for x in bul["semestre"]["decision_ue"]}
|
{x["acronyme"]: x for x in bul["semestre"]["decision_ue"]}
|
||||||
if "semestre" in bul and "decision_ue" in bul["semestre"]
|
if "semestre" in bul and "decision_ue" in bul["semestre"]
|
||||||
else {}
|
else {}
|
||||||
)
|
)
|
||||||
if not "ues" in bul:
|
if "ues" not in bul:
|
||||||
raise ScoValueError("Aucune UE à afficher")
|
raise ScoValueError("Aucune UE à afficher")
|
||||||
cursus = cursus_but.EtudCursusBUT(etud, formsemestre.formation)
|
cursus = cursus_but.EtudCursusBUT(etud, formsemestre.formation)
|
||||||
refcomp = formsemestre.formation.referentiel_competence
|
refcomp = formsemestre.formation.referentiel_competence
|
||||||
|
Loading…
Reference in New Issue
Block a user