Changeset 14958 for main/waeup.aaue/trunk/src
- Timestamp:
- 2 Mar 2018, 11:04:10 (7 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
r14954 r14958 33 33 self.assertEqual(utils.getReturningData(self.student),(2005, 200)) 34 34 self.student['studycourse'].current_verdict = 'C' 35 self.assertEqual(utils.getReturningData(self.student),(2005, 200))35 self.assertEqual(utils.getReturningData(self.student),(2005, 110)) 36 36 self.student['studycourse'].current_verdict = 'NER' 37 37 self.assertEqual(utils.getReturningData(self.student),(2005, 100)) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r14954 r14958 206 206 prev_level = student['studycourse'].current_level 207 207 cur_verdict = student['studycourse'].current_verdict 208 if cur_verdict in ('A','B',' C', 'L','M','N','Z',):208 if cur_verdict in ('A','B','L','M','N','Z',): 209 209 # Successful student 210 210 new_level = divmod(int(prev_level),100)[0]*100 + 100 211 #elif cur_verdict == 'C':212 ## Student on probation213 #new_level = int(prev_level) + 10211 elif cur_verdict == 'C': 212 # Student on probation 213 new_level = int(prev_level) + 10 214 214 else: 215 215 # Student is somehow in an undefined state.
Note: See TracChangeset for help on using the changeset viewer.