forked from ScoDoc/ScoDoc
Fix: bul xml ancien format
This commit is contained in:
parent
8d963db983
commit
a22ab4df2f
@ -192,40 +192,40 @@ def bulletin_but_xml_compat(
|
|||||||
modimpl.module.code_apogee or ""
|
modimpl.module.code_apogee or ""
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
# XXX TODO rangs et effectifs
|
# XXX TODO rangs et effectifs
|
||||||
# --- notes de chaque eval:
|
# --- notes de chaque eval:
|
||||||
if version != "short":
|
if version != "short":
|
||||||
for e in modimpl.evaluations:
|
for e in modimpl.evaluations:
|
||||||
if e.visibulletin or version == "long":
|
if e.visibulletin or version == "long":
|
||||||
x_eval = Element(
|
x_eval = Element(
|
||||||
"evaluation",
|
"evaluation",
|
||||||
jour=e.jour.isoformat() if e.jour else "",
|
jour=e.jour.isoformat() if e.jour else "",
|
||||||
heure_debut=e.heure_debut.isoformat()
|
heure_debut=e.heure_debut.isoformat()
|
||||||
if e.heure_debut
|
if e.heure_debut
|
||||||
else "",
|
else "",
|
||||||
heure_fin=e.heure_fin.isoformat()
|
heure_fin=e.heure_fin.isoformat()
|
||||||
if e.heure_debut
|
if e.heure_debut
|
||||||
else "",
|
else "",
|
||||||
coefficient=str(e.coefficient),
|
coefficient=str(e.coefficient),
|
||||||
# pas les poids en XML compat
|
# pas les poids en XML compat
|
||||||
evaluation_type=str(e.evaluation_type),
|
evaluation_type=str(e.evaluation_type),
|
||||||
description=scu.quote_xml_attr(e.description),
|
description=scu.quote_xml_attr(e.description),
|
||||||
# notes envoyées sur 20, ceci juste pour garder trace:
|
# notes envoyées sur 20, ceci juste pour garder trace:
|
||||||
note_max_origin=str(e.note_max),
|
note_max_origin=str(e.note_max),
|
||||||
)
|
|
||||||
x_mod.append(x_eval)
|
|
||||||
x_eval.append(
|
|
||||||
Element(
|
|
||||||
"note",
|
|
||||||
value=scu.fmt_note(
|
|
||||||
results.modimpls_results[
|
|
||||||
e.moduleimpl_id
|
|
||||||
].evals_notes[e.id][etud.id],
|
|
||||||
note_max=e.note_max,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
)
|
x_mod.append(x_eval)
|
||||||
# XXX TODO: Evaluations incomplètes ou futures: XXX
|
x_eval.append(
|
||||||
|
Element(
|
||||||
|
"note",
|
||||||
|
value=scu.fmt_note(
|
||||||
|
results.modimpls_results[
|
||||||
|
e.moduleimpl_id
|
||||||
|
].evals_notes[e.id][etud.id],
|
||||||
|
note_max=e.note_max,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
# XXX TODO: Evaluations incomplètes ou futures: XXX
|
||||||
# XXX TODO UE capitalisee (listee seulement si meilleure que l'UE courante)
|
# XXX TODO UE capitalisee (listee seulement si meilleure que l'UE courante)
|
||||||
|
|
||||||
# --- Absences
|
# --- Absences
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.1.52"
|
SCOVERSION = "9.1.53"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user