Ignore:
Timestamp:
2 Mar 2018, 11:04:10 (7 years ago)
Author:
Henrik Bettermann
Message:

Use verdict 'C' for probation or extension levels.

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

    r14954 r14958  
    206206        prev_level = student['studycourse'].current_level
    207207        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',):
    209209            # Successful student
    210210            new_level = divmod(int(prev_level),100)[0]*100 + 100
    211         #elif cur_verdict == 'C':
    212         #    # Student on probation
    213         #    new_level = int(prev_level) + 10
     211        elif cur_verdict == 'C':
     212            # Student on probation
     213            new_level = int(prev_level) + 10
    214214        else:
    215215            # Student is somehow in an undefined state.
Note: See TracChangeset for help on using the changeset viewer.