(Commit en retard) ECTS dans bul pdf

This commit is contained in:
Emmanuel Viennet 2022-03-16 09:00:34 +01:00
parent 4f0294b5de
commit c652bbf2f6

View File

@ -139,7 +139,12 @@ class BulletinGeneratorStandardBUT(BulletinGeneratorStandard):
}
rows.append(t)
# 2eme ligne titre UE (bonus/malus/ects)
ects_txt = f'ECTS: {ue["ECTS"]["acquis"]:.3g} / {ue["ECTS"]["total"]:.3g}'
if "ECTS" in ue:
ects_txt = (
f'ECTS: {ue["ECTS"]["acquis"]:.3g} / {ue["ECTS"]["total"]:.3g}'
)
else:
ects_txt = ""
t = {
"titre": f"""Bonus: {ue['bonus']} - Malus: {
ue["malus"]}""",