Changeset 15006 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 13 May 2018, 04:58:37 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r14999 r15006 1013 1013 coursetickets_filtered = [courseticket 1014 1014 for courseticket in coursetickets 1015 if courseticket.student.current_mode in score_editing_enabled] 1015 if courseticket.student.current_mode in score_editing_enabled 1016 and courseticket.total_score is not None] 1016 1017 except KeyError: 1017 1018 coursetickets_filtered = coursetickets … … 1021 1022 if ticket.editable_by_lecturer] 1022 1023 header = [[_(''), 1024 _('Student Id'), 1023 1025 _('Matric No.'), 1024 1026 #_('Reg. No.'), … … 1028 1030 _('Department'), 1029 1031 _('Level'), 1030 _(' CA '),1031 _('Exam\nScore'),1032 #_(' CA '), 1033 #_('Exam\nScore'), 1032 1034 _('Total '), 1033 1035 _('Grade'), … … 1043 1045 # In AAUE only editable tickets can be printed 1044 1046 for ticket in sorted_tickets: 1045 if ticket.total_score is None: 1046 total = 'n/a' 1047 grade = 'n/a' 1047 total = ticket.total_score 1048 grade = ticket._getGradeWeightFromScore[0] 1049 if grade in ('F', '-'): 1050 failed += 1 1048 1051 else: 1049 total = ticket.total_score 1050 grade = ticket._getGradeWeightFromScore[0] 1051 if grade in ('F', '-'): 1052 failed += 1 1053 else: 1054 passed += 1 1052 passed += 1 1055 1053 fullname = textwrap.fill(ticket.student.display_fullname, 30) 1056 1054 #deptitle = site['faculties'][ticket.student.faccode][ 1057 1055 # ticket.student.depcode].longtitle 1058 1056 row = [no, 1057 ticket.student.student_id, 1059 1058 ticket.student.matric_number, 1060 1059 #ticket.student.reg_number, … … 1064 1063 ticket.student.faccode + ' / ' + ticket.student.depcode, 1065 1064 ticket.level, 1066 ticket.ca,1067 ticket.score,1065 #ticket.ca, 1066 #ticket.score, 1068 1067 total, 1069 1068 grade,
Note: See TracChangeset for help on using the changeset viewer.