Ignore:
Timestamp:
31 Jan 2017, 15:14:26 (8 years ago)
Author:
Henrik Bettermann
Message:

Display total numbers with leading zeros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py

    r14481 r14484  
    218218            gpa_count = len(self.data[gpa_class])
    219219            total_count += gpa_count
    220             table_data += [(gpa_class_name + ':', gpa_count)]
     220            table_data += [(gpa_class_name + ':', '%02d' % gpa_count)]
    221221            #pdf_data += [Paragraph('%s: %s'
    222222            #             % (gpa_class_name, gpa_count), STYLE["Normal"])]
    223223            pass
    224224        #pdf_data += [Paragraph('Total: %s' % (total_count), STYLE["Normal"])]
    225         table_data += [('Total:', total_count)]
     225        table_data += [('Total:', '%02d' % total_count)]
    226226        pdf_data += [Table(table_data, style=SUMMARY_STYLE, hAlign='LEFT')]
    227227
Note: See TracChangeset for help on using the changeset viewer.