From 0ceb1c80466af3685d579e1e2f58c31f3c9df434 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 7 Jan 2022 18:09:45 +0100 Subject: [PATCH] Fix: flag publication bulletins XML BUT compat --- app/but/bulletin_but_xml_compat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/but/bulletin_but_xml_compat.py b/app/but/bulletin_but_xml_compat.py index 04e47d971..10bec3d82 100644 --- a/app/but/bulletin_but_xml_compat.py +++ b/app/but/bulletin_but_xml_compat.py @@ -73,9 +73,9 @@ def bulletin_but_xml_compat( results = bulletin_but.ResultatsSemestreBUT(sem) nb_inscrits = len(results.etuds) if (not sem.bul_hide_xml) or force_publishing: - published = "1" + published = 1 else: - published = "0" + published = 0 if xml_nodate: docdate = "" else: @@ -84,7 +84,7 @@ def bulletin_but_xml_compat( "etudid": str(etudid), "formsemestre_id": str(formsemestre_id), "date": docdate, - "publie": published, + "publie": str(published), } if sem.etapes: el["etape_apo"] = sem.etapes[0].etape_apo or ""