Fix: flag publication bulletins XML BUT compat
This commit is contained in:
parent
b1ab7a4df9
commit
0ceb1c8046
@ -73,9 +73,9 @@ def bulletin_but_xml_compat(
|
|||||||
results = bulletin_but.ResultatsSemestreBUT(sem)
|
results = bulletin_but.ResultatsSemestreBUT(sem)
|
||||||
nb_inscrits = len(results.etuds)
|
nb_inscrits = len(results.etuds)
|
||||||
if (not sem.bul_hide_xml) or force_publishing:
|
if (not sem.bul_hide_xml) or force_publishing:
|
||||||
published = "1"
|
published = 1
|
||||||
else:
|
else:
|
||||||
published = "0"
|
published = 0
|
||||||
if xml_nodate:
|
if xml_nodate:
|
||||||
docdate = ""
|
docdate = ""
|
||||||
else:
|
else:
|
||||||
@ -84,7 +84,7 @@ def bulletin_but_xml_compat(
|
|||||||
"etudid": str(etudid),
|
"etudid": str(etudid),
|
||||||
"formsemestre_id": str(formsemestre_id),
|
"formsemestre_id": str(formsemestre_id),
|
||||||
"date": docdate,
|
"date": docdate,
|
||||||
"publie": published,
|
"publie": str(published),
|
||||||
}
|
}
|
||||||
if sem.etapes:
|
if sem.etapes:
|
||||||
el["etape_apo"] = sem.etapes[0].etape_apo or ""
|
el["etape_apo"] = sem.etapes[0].etape_apo or ""
|
||||||
|
Loading…
Reference in New Issue
Block a user