diff --git a/app/scodoc/sco_bulletins_xml.py b/app/scodoc/sco_bulletins_xml.py index 3d4bb109..982ace4e 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 (