Bug fix in PDF generation

This commit is contained in:
Gregory Trullemans 2022-10-05 10:38:23 +02:00
parent 821ee23b7e
commit be69323bdf
1 changed files with 6 additions and 4 deletions

View File

@ -211,10 +211,12 @@ class GymnastReportDocument(PDFDocument):
str(gymnast.age)
)
self.document.setFillColorRGB(0, 0, 0)
self.add_new_line(
130,
str(gymnast.informations)
)
if gymnast.informations:
self.add_new_line(
130,
str(gymnast.informations)
)
def analyse_score(self, value, value_list):
""" Analyse une value (value) par rapport à la moyenne de value_list et à la dernière