forked from ScoDoc/ScoDoc
Fix affichage RCUE
This commit is contained in:
parent
3c97cda088
commit
f31ccbee9a
@ -326,12 +326,16 @@ def dict_decision_jury(etud: Identite, formsemestre: FormSemestre) -> dict:
|
|||||||
etudid=etud.id, formsemestre_id=formsemestre.id
|
etudid=etud.id, formsemestre_id=formsemestre.id
|
||||||
)
|
)
|
||||||
decisions["decision_rcue"] = [v.to_dict_bul() for v in validations_rcues]
|
decisions["decision_rcue"] = [v.to_dict_bul() for v in validations_rcues]
|
||||||
decisions["descr_decisions_rcue"] = ", ".join(
|
titres_rcues = []
|
||||||
[
|
for dec_rcue in decisions["decision_rcue"]:
|
||||||
f"""{dec_rcue["niveau"]["competence"]["titre"]} {dec_rcue["niveau"]["ordre"]}: {dec_rcue["code"]}"""
|
niveau = dec_rcue["niveau"]
|
||||||
for dec_rcue in decisions["decision_rcue"]
|
if niveau is None:
|
||||||
]
|
titres_rcues.append(f"""pas de compétence: code {dec_rcue["code"]}""")
|
||||||
)
|
else:
|
||||||
|
titres_rcues.append(
|
||||||
|
f"""{niveau["competence"]["titre"]} {niveau["ordre"]}: {dec_rcue["code"]}"""
|
||||||
|
)
|
||||||
|
decisions["descr_decisions_rcue"] = ", ".join(titres_rcues)
|
||||||
decisions["descr_decisions_niveaux"] = (
|
decisions["descr_decisions_niveaux"] = (
|
||||||
"Niveaux de compétences: " + decisions["descr_decisions_rcue"]
|
"Niveaux de compétences: " + decisions["descr_decisions_rcue"]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user