- Timestamp:
- 29 Jun 2021, 07:19:56 (3 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r16472 r16518 6 6 7 7 * Adjust `ApplicantOnlinePaymentProcessor.getMapping` (2nd bugfix). 8 9 * Sort attendance.pdf first by faculty and department before certcode. 10 11 * Add serial o to the coursetickets.pdf. 8 12 9 13 1.7.1 (2021-04-20) -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r16505 r16518 4105 4105 code=(self.context.code, self.context.code) 4106 4106 ) 4107 header = [[_('Matric No.'), 4107 header = [[_('S/N'), 4108 _('Matric No.'), 4108 4109 _('Reg. No.'), 4109 4110 _('Fullname'), … … 4113 4114 _('Score') ],] 4114 4115 tickets = [] 4116 sn = 1 4115 4117 for ticket in list(coursetickets): 4116 row = [ticket.student.matric_number, 4118 row = [sn, 4119 ticket.student.matric_number, 4117 4120 ticket.student.reg_number, 4118 4121 ticket.student.display_fullname, … … 4124 4127 ] 4125 4128 tickets.append(row) 4126 data = sorted(tickets, key=lambda value: value[7]) 4127 for d in data: d.pop(7) 4129 sn += 1 4130 data = sorted(tickets, key=lambda value: value[8]) 4131 for d in data: d.pop(8) 4128 4132 return header + data, None 4129 4133 … … 4177 4181 sn = 1 4178 4182 ctlist = sorted(list(coursetickets), 4179 key=lambda value: str(value.student.certcode) + 4183 key=lambda value: str(value.student.faccode) + 4184 str(value.student.depcode) + 4185 str(value.student.certcode) + 4180 4186 str(value.student.matric_number)) 4181 4187 # In AAUE only editable appear on the attendance sheet. Hopefully
Note: See TracChangeset for help on using the changeset viewer.