Cas ou departement sans nom complet

This commit is contained in:
Emmanuel Viennet 2022-03-18 19:33:07 +01:00
parent cadc26d581
commit 30e3328057
2 changed files with 8 additions and 3 deletions

View File

@ -74,7 +74,11 @@ def pdf_trombino_tours(
T = Table( T = Table(
[ [
[Paragraph(SU(InstituteName), StyleSheet["Heading3"])], [Paragraph(SU(InstituteName), StyleSheet["Heading3"])],
[Paragraph(SU("Département " + DeptFullName), StyleSheet["Heading3"])], [
Paragraph(
SU("Département " + DeptFullName or "(?)"), StyleSheet["Heading3"]
)
],
[ [
Paragraph( Paragraph(
SU("Date ............ / ............ / ......................"), SU("Date ............ / ............ / ......................"),
@ -321,7 +325,8 @@ def pdf_feuille_releve_absences(
], ],
[ [
Paragraph( Paragraph(
SU("Département " + DeptFullName), StyleSheet["Heading3"] SU("Département " + (DeptFullName or "(?)")),
StyleSheet["Heading3"],
), ),
"", "",
], ],

View File

@ -613,7 +613,7 @@ def SignaleAbsenceGrSemestre(
"modimpl_id": modimpl["moduleimpl_id"], "modimpl_id": modimpl["moduleimpl_id"],
"modname": (modimpl["module"]["code"] or "") "modname": (modimpl["module"]["code"] or "")
+ " " + " "
+ (modimpl["module"]["abbrev"] or modimpl["module"]["titre"]), + (modimpl["module"]["abbrev"] or modimpl["module"]["titre"] or ""),
"sel": sel, "sel": sel,
} }
) )