Changeset 14089 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 18 Aug 2016, 07:42:10 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r13854 r14089 32 32 self.assertEqual(utils.getReturningData(self.student),(2005, 200)) 33 33 self.student['studycourse'].current_verdict = 'C' 34 self.assertEqual(utils.getReturningData(self.student),(2005, 110))34 self.assertEqual(utils.getReturningData(self.student),(2005, 200)) 35 35 self.student['studycourse'].current_verdict = 'NEOR' 36 36 self.assertEqual(utils.getReturningData(self.student),(2005, 100)) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r14072 r14089 116 116 prev_level = student['studycourse'].current_level 117 117 cur_verdict = student['studycourse'].current_verdict 118 if cur_verdict in ('A','B',' L','M','N','Z',):118 if cur_verdict in ('A','B','C', 'L','M','N','Z',): 119 119 # Successful student 120 120 new_level = divmod(int(prev_level),100)[0]*100 + 100 121 elif cur_verdict == 'C':122 # Student on probation123 new_level = int(prev_level) + 10121 #elif cur_verdict == 'C': 122 # # Student on probation 123 # new_level = int(prev_level) + 10 124 124 else: 125 125 # Student is somehow in an undefined state.
Note: See TracChangeset for help on using the changeset viewer.