Changeset 16708


Ignore:
Timestamp:
9 Nov 2021, 11:00:59 (3 years ago)
Author:
Henrik Bettermann
Message:

Further harmonise reports.

File:
1 edited

Legend:

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

    r16694 r16708  
    128128        certificate = getattr(level_obj.__parent__,'certificate', None)
    129129        end_level = getattr(certificate, 'end_level', None)
    130         if level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
    131             # credits taken below limit
     130        if level_obj.level_verdict in ('FRNS', 'NER', 'NYV'):
    132131            return 0
    133132        if end_level and level_obj.level >= end_level:
     133            if level_obj.level > end_level:
     134                # spill-over level
     135                if level_obj.gpa_params[1] == 0:
     136                    # no credits taken
     137                    return 0
     138            elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
     139                # credits taken below limit
     140                return 0
    134141            failed_courses = level_obj.passed_params[4]
    135142            not_taken_courses = level_obj.passed_params[5]
     
    139146                and not not_taken_courses == 'Nil':
    140147                return 0
    141         if level_obj.level_verdict in ('FRNS', 'NER', 'NYV'):
     148        elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:
     149            # credits taken below limit
    142150            return 0
    143151        # use gpa_boundaries above
Note: See TracChangeset for help on using the changeset viewer.