Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 92f6886ac1 - Show all commits

View File

@ -72,9 +72,11 @@ def bulletin_but(formsemestre_id: int, etudid: int = None, fmt="html"):
bul: dict = bulletins_sem.bulletin_etud(etud) bul: dict = bulletins_sem.bulletin_etud(etud)
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 if "semestre" in bul and "decision_ue" in bul["semestre"]
else {} else {}
) )
if not "ues" in bul:
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
if refcomp is None: if refcomp is None: