forked from ScoDoc/ScoDoc
Bul. DUT/ classic JSON: champ 'publie'
This commit is contained in:
parent
312faf74fb
commit
83ddd2bf03
@ -92,7 +92,6 @@ def formsemestre_bulletinetud_published_dict(
|
||||
|
||||
nt: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre)
|
||||
d = {"type": "classic", "version": "0"}
|
||||
|
||||
if (not sem["bul_hide_xml"]) or force_publishing:
|
||||
published = True
|
||||
else:
|
||||
@ -134,6 +133,7 @@ def formsemestre_bulletinetud_published_dict(
|
||||
)
|
||||
d["etudiant"]["sexe"] = d["etudiant"]["civilite"] # backward compat for our clients
|
||||
# Disponible pour publication ?
|
||||
d["publie"] = published
|
||||
if not published:
|
||||
return d # stop !
|
||||
|
||||
@ -364,8 +364,35 @@ def formsemestre_bulletinetud_published_dict(
|
||||
return d
|
||||
|
||||
|
||||
def dict_decision_jury(etudid, formsemestre_id, with_decisions=False):
|
||||
"dict avec decision pour bulletins json"
|
||||
def dict_decision_jury(etudid, formsemestre_id, with_decisions=False) -> dict:
|
||||
"""dict avec decision pour bulletins json
|
||||
- decision : décision semestre
|
||||
- decision_ue : list des décisions UE
|
||||
- situation
|
||||
|
||||
with_decision donne les décision même si bul_show_decision est faux.
|
||||
|
||||
Exemple:
|
||||
{
|
||||
'autorisation_inscription': [{'semestre_id': 4}],
|
||||
'decision': {'code': 'ADM',
|
||||
'compense_formsemestre_id': None,
|
||||
'date': '2022-01-21',
|
||||
'etat': 'I'},
|
||||
'decision_ue': [
|
||||
{
|
||||
'acronyme': 'UE31',
|
||||
'code': 'ADM',
|
||||
'ects': 16.0,
|
||||
'numero': 23,
|
||||
'titre': 'Approfondissement métiers',
|
||||
'ue_id': 1787
|
||||
},
|
||||
...
|
||||
],
|
||||
'situation': 'Inscrit le 25/06/2021. Décision jury: Validé. UE acquises: '
|
||||
'UE31, UE32. Diplôme obtenu.'}
|
||||
"""
|
||||
from app.scodoc import sco_bulletins
|
||||
|
||||
d = {}
|
||||
|
Loading…
Reference in New Issue
Block a user