Changeset 14391 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 12 Jan 2017, 17:29:12 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py
r14382 r14391 82 82 continue 83 83 if level_obj.gpa_params[1] == 0: 84 # Error: no credits weighted85 table[ len(students_utils.gpa_boundaries)].append(line)86 continue87 gpaclass = students_utils.getDegreeClassNumber(level_obj)88 table[gpaclass].append(line)84 # No credits weighted 85 table[0].append(line) 86 else: 87 gpaclass = students_utils.getDegreeClassNumber(level_obj) 88 table[gpaclass].append(line) 89 89 return table 90 90 … … 167 167 pdf_data += [ 168 168 Paragraph( 169 '<strong>Students with no available data for ' 170 'computation</strong>', STYLE["Normal"])] 169 '<strong>Students with erroneous data</strong>', STYLE["Normal"])] 171 170 pdf_data.append(Spacer(1, 10)) 172 171 table_data = [('Student Id', 'Matric No.', 'Name')] + self.data[-1] -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_session_results_presentation.py
r14373 r14391 52 52 result = get_students('fac1', 'dep1', 2010, 0) 53 53 self.assertEqual(result, 54 [[ ], [], [], [], [], [], [(u'K1000000', u'1234', u'Bob Tester')]])54 [[(u'K1000000', u'1234', u'Bob Tester')], [], [], [], [], [], []]) 55 55 56 56 def test_get_students_without_level_in_session(self):
Note: See TracChangeset for help on using the changeset viewer.