From 9114c6bad56e5d039796f5a0ac33288a7338d3bf Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 22 Aug 2021 21:55:01 +0200 Subject: [PATCH] exports bul xml --- app/scodoc/sco_bulletins_xml.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scodoc/sco_bulletins_xml.py b/app/scodoc/sco_bulletins_xml.py index 3d4bb109d..982ace4e7 100644 --- a/app/scodoc/sco_bulletins_xml.py +++ b/app/scodoc/sco_bulletins_xml.py @@ -175,8 +175,8 @@ def make_xml_formsemestre_bulletinetud( doc.append( Element( "rang_group", - group_type=partition["partition_name"], - group_name=gr_name[partition["partition_id"]], + group_type=partition["partition_name"] or "", + group_name=gr_name[partition["partition_id"]] or "", value=str(rang_gr[partition["partition_id"]]), ninscrits=str(ninscrits_gr[partition["partition_id"]]), ) @@ -311,7 +311,7 @@ def make_xml_formsemestre_bulletinetud( description=scu.quote_xml_attr(e["description"]), incomplete="1", # notes envoyées sur 20, ceci juste pour garder trace: - note_max_origin=e["note_max"], + note_max_origin=str(e["note_max"] or ""), ) x_mod.append(x_eval) # UE capitalisee (listee seulement si meilleure que l'UE courante) @@ -364,7 +364,7 @@ def make_xml_formsemestre_bulletinetud( decision = dpv["decisions"][0] etat = decision["etat"] if decision["decision_sem"]: - code = decision["decision_sem"]["code"] + code = decision["decision_sem"]["code"] or "" else: code = "" if (