Ignore:
Timestamp:
29 Jan 2013, 11:22:29 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not increase session for NCE III repeaters.

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  
    209209        self.student['studycourse'].current_verdict = 'D'
    210210        self.assertEqual(utils.getReturningData(self.student),(2005, 100))
     211        self.student['studycourse'].current_verdict = 'O'
     212        self.assertEqual(utils.getReturningData(self.student),(2004, 110))
    211213        return
    212214
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r9903 r9923  
    4646            # Successful student
    4747            new_level = divmod(int(prev_level),100)[0]*100 + 100
    48         elif cur_verdict == 'C':
     48        elif cur_verdict in ('C','O'):
    4949            # Student on probation
    5050            new_level = int(prev_level) + 10
     
    5353            # Level has to be set manually.
    5454            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
    5659        return new_session, new_level
    5760
Note: See TracChangeset for help on using the changeset viewer.