Changeset 16652 for main


Ignore:
Timestamp:
29 Sep 2021, 10:03:16 (3 years ago)
Author:
Henrik Bettermann
Message:

Adjust getDegreeClassNumber (untested)

File:
1 edited

Legend:

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

    r16179 r16652  
    123123        certificate = getattr(level_obj.__parent__,'certificate', None)
    124124        end_level = getattr(certificate, 'end_level', None)
     125        if level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
     126            # credits taken below limit
     127            return 0
    125128        if end_level and level_obj.level >= end_level:
    126             if level_obj.level > end_level:
    127                 # spill-over level
    128                 if level_obj.gpa_params[1] == 0:
    129                     # no credits taken
    130                     return 0
    131             elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    132                 # credits taken below limit
    133                 return 0
    134129            failed_courses = level_obj.passed_params[4]
    135130            not_taken_courses = level_obj.passed_params[5]
     
    139134                and not not_taken_courses == 'Nil':
    140135                return 0
    141         elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    142             # credits taken below limit
    143             return 0
    144136        if level_obj.level_verdict in ('FRNS', 'NER', 'NYV'):
    145137            return 0
Note: See TracChangeset for help on using the changeset viewer.