Changeset 14089 for main/waeup.aaue


Ignore:
Timestamp:
18 Aug 2016, 07:42:10 (8 years ago)
Author:
Henrik Bettermann
Message:

No probation levels in AAUE.

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  
    3232        self.assertEqual(utils.getReturningData(self.student),(2005, 200))
    3333        self.student['studycourse'].current_verdict = 'C'
    34         self.assertEqual(utils.getReturningData(self.student),(2005, 110))
     34        self.assertEqual(utils.getReturningData(self.student),(2005, 200))
    3535        self.student['studycourse'].current_verdict = 'NEOR'
    3636        self.assertEqual(utils.getReturningData(self.student),(2005, 100))
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14072 r14089  
    116116        prev_level = student['studycourse'].current_level
    117117        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',):
    119119            # Successful student
    120120            new_level = divmod(int(prev_level),100)[0]*100 + 100
    121         elif cur_verdict == 'C':
    122             # Student on probation
    123             new_level = int(prev_level) + 10
     121        #elif cur_verdict == 'C':
     122        #    # Student on probation
     123        #    new_level = int(prev_level) + 10
    124124        else:
    125125            # Student is somehow in an undefined state.
Note: See TracChangeset for help on using the changeset viewer.