Ignore:
Timestamp:
26 Jan 2017, 11:03:09 (8 years ago)
Author:
Henrik Bettermann
Message:

ivama: Any student with less than 30 units in summary of result should not proceed no matter the GPA/CGPA.

File:
1 edited

Legend:

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

    r14462 r14464  
    7272        reports).
    7373        """
    74         if level_obj.gpa_params[1] == 0:
    75             # No credits weighted
    76             return 0
    77         if level_obj.level_verdict in ('FRNS', 'NEOR', 'NEOV'):
    78             return 0
    7974        certificate = getattr(level_obj.__parent__,'certificate', None)
    8075        end_level = getattr(certificate, 'end_level', None)
    8176        if end_level and level_obj.level >= end_level:
     77            if level_obj.level > end_level:
     78                # spill-over level
     79                if self.gpa_params[1] == 0:
     80                    # no credits taken
     81                    return 0
    8282            failed_courses = level_obj.passed_params[4]
    8383            not_taken_courses = level_obj.passed_params[5]
     
    8787                and not not_taken_courses == 'NIL':
    8888                return 0
     89        elif level_obj.gpa_params[1] < 30:
     90            # credits taken below limit
     91            return 0
     92        if level_obj.level_verdict in ('FRNS', 'NEOR', 'NEOV'):
     93            return 0
    8994        # use gpa_boundaries above
    9095        return self.getClassFromCGPA(
Note: See TracChangeset for help on using the changeset viewer.