Fix: bul BUT pdf / autorisation_inscription

This commit is contained in:
Emmanuel Viennet 2023-09-05 15:13:50 +02:00
parent d21388edb8
commit fc2fc07af0
2 changed files with 3 additions and 3 deletions

View File

@ -499,14 +499,14 @@ class BulletinGeneratorBUTCourt(BulletinGeneratorStandard):
def boite_decisions_jury(self): def boite_decisions_jury(self):
"""La boite en bas à droite avec jury""" """La boite en bas à droite avec jury"""
txt = f"""ECTS acquis en BUT : <b>{self.ects_total:g}</b><br/>""" txt = f"""ECTS acquis en BUT : <b>{self.ects_total:g}</b><br/>"""
if self.bul["semestre"]["decision_annee"]: if self.bul["semestre"].get("decision_annee", None):
txt += f""" txt += f"""
Jury tenu le { Jury tenu le {
datetime.datetime.fromisoformat(self.bul["semestre"]["decision_annee"]["date"]).strftime("%d/%m/%Y") datetime.datetime.fromisoformat(self.bul["semestre"]["decision_annee"]["date"]).strftime("%d/%m/%Y")
}, année BUT <b>{self.bul["semestre"]["decision_annee"]["code"]}</b>. }, année BUT <b>{self.bul["semestre"]["decision_annee"]["code"]}</b>.
<br/> <br/>
""" """
if self.bul["semestre"]["autorisation_inscription"]: if self.bul["semestre"].get("autorisation_inscription", None):
txt += ( txt += (
"<br/>Autorisé à s'inscrire en <b>" "<br/>Autorisé à s'inscrire en <b>"
+ ", ".join( + ", ".join(

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.6.19" SCOVERSION = "9.6.20"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"