Changeset 9923 for main/waeup.fceokene/trunk
- Timestamp:
- 29 Jan 2013, 11:22:29 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r9753 r9923 209 209 self.student['studycourse'].current_verdict = 'D' 210 210 self.assertEqual(utils.getReturningData(self.student),(2005, 100)) 211 self.student['studycourse'].current_verdict = 'O' 212 self.assertEqual(utils.getReturningData(self.student),(2004, 110)) 211 213 return 212 214 -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r9903 r9923 46 46 # Successful student 47 47 new_level = divmod(int(prev_level),100)[0]*100 + 100 48 elif cur_verdict == 'C':48 elif cur_verdict in ('C','O'): 49 49 # Student on probation 50 50 new_level = int(prev_level) + 10 … … 53 53 # Level has to be set manually. 54 54 new_level = prev_level 55 new_session = student['studycourse'].current_session + 1 55 if cur_verdict == 'O': 56 new_session = student['studycourse'].current_session 57 else: 58 new_session = student['studycourse'].current_session + 1 56 59 return new_session, new_level 57 60
Note: See TracChangeset for help on using the changeset viewer.