Ignore:
Timestamp:
30 Mar 2017, 19:13:26 (8 years ago)
Author:
Henrik Bettermann
Message:

Reduce minimum units threshold.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r14662 r14663  
    3535from waeup.aaue.students.interfaces import (
    3636    ICustomStudentStudyLevel, ICustomCourseTicket)
     37from waeup.aaue.students.utils import MINIMUM_UNITS_THRESHOLD
    3738from waeup.aaue.interfaces import MessageFactory as _
    3839
     
    195196                    # no credits taken
    196197                    return 'NER'
    197             elif self.gpa_params[1] < 30:
     198            elif self.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    198199                # credits taken below limit
    199200                return 'NER'
     
    230231            # no credits taken
    231232            return 'NER'
    232         if self.gpa_params[1] < 30:
     233        if self.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    233234            # credits taken below limit
    234235            return 'Probation'
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14660 r14663  
    2828from waeup.aaue.interfaces import MessageFactory as _
    2929
     30MINIMUM_UNITS_THRESHOLD = 15
     31
    3032class CustomStudentsUtils(NigeriaStudentsUtils):
    3133    """A collection of customized methods.
     
    8082                    # no credits taken
    8183                    return 0
    82             elif level_obj.gpa_params[1] < 30:
     84            elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    8385                # credits taken below limit
    8486                return 0
     
    9092                and not not_taken_courses == 'Nil':
    9193                return 0
    92         elif level_obj.gpa_params[1] < 30:
     94        elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    9395            # credits taken below limit
    9496            return 0
Note: See TracChangeset for help on using the changeset viewer.