Ignore:
Timestamp:
17 Jan 2017, 13:54:55 (8 years ago)
Author:
Henrik Bettermann
Message:

Next trial.

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

    r14413 r14415  
    172172    @property
    173173    def remark(self):
    174         if self.gpa_params[1] == 0:
    175             # No credits weighted at this level
    176             return 'FRNS'
    177         if self.level_verdict == 'FRNS':
    178             return 'FRNS'
    179174        certificate = getattr(self.__parent__,'certificate',None)
    180175        end_level = getattr(certificate, 'end_level', None)
     
    184179        # final level student remark
    185180        if end_level and self.level >= end_level:
     181            if self.gpa_params[1] == 0:
     182                # No credits weighted at this level
     183                return 'FRNS'
     184            if self.level_verdict in ('FRNS', 'NEOR', 'NEOV'):
     185                return self.level_verdict
    186186            if '_m' in self.passed_params[4]:
    187187                return 'FRNS'
     
    202202            return 'N/A'
    203203        # returning student remark
     204        if self.gpa_params[1] == 0:
     205            # No credits weighted at this level
     206            return 'Probation'
     207        if self.level_verdict in ('FRNS', 'NEOR', 'NEOV'):
     208            return 'Probation'
    204209        if self.cumulative_params[0] < failed_limit:
    205210            return 'Probation'
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14413 r14415  
    4343
    4444    def getDegreeClassNumber(self, level_obj):
     45        """Get degree class number (used for SessionResultsPresentation
     46        reports).
     47        """
    4548        if level_obj.gpa_params[1] == 0:
    4649            # No credits weighted
    4750            return 0
    48         if level_obj.level_verdict == 'FRNS':
     51        if level_obj.level_verdict in ('FRNS', 'NEOR', 'NEOV'):
    4952            return 0
    5053        certificate = getattr(level_obj.__parent__,'certificate',None)
Note: See TracChangeset for help on using the changeset viewer.