Changeset 15821
- Timestamp:
- 18 Nov 2019, 13:23:26 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r15705 r15821 1041 1041 translate(_('<b>${a}</b>', 1042 1042 mapping = {'a':data[1][1]})), style["Normal"]),] 1043 1044 1043 pdf_data += [Paragraph( 1045 1044 translate(_('<b>Total Students: ${a}</b>', … … 1051 1050 translate(_('<b>Total Fail: ${a} (${b}%)</b>', 1052 1051 mapping = {'a':data[1][5],'b':data[1][6]})), style["Normal"]),] 1052 grade_stats = [] 1053 for item in data[1][7].items(): 1054 grade_stats.append(('%s=%s' % (item[0], item[1]))) 1055 grade_stats_string = ', '.join(grade_stats) 1056 pdf_data += [Paragraph( 1057 translate(_('<b>${a}</b>', 1058 mapping = {'a':grade_stats_string})), style["Normal"]),] 1053 1059 pdf_data.append(Spacer(1, 20)) 1054 1060 colWidths = [None] * len(data[0][0])
Note: See TracChangeset for help on using the changeset viewer.