Changeset 14464 for main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
- Timestamp:
- 26 Jan 2017, 11:03:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r14462 r14464 72 72 reports). 73 73 """ 74 if level_obj.gpa_params[1] == 0:75 # No credits weighted76 return 077 if level_obj.level_verdict in ('FRNS', 'NEOR', 'NEOV'):78 return 079 74 certificate = getattr(level_obj.__parent__,'certificate', None) 80 75 end_level = getattr(certificate, 'end_level', None) 81 76 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 82 82 failed_courses = level_obj.passed_params[4] 83 83 not_taken_courses = level_obj.passed_params[5] … … 87 87 and not not_taken_courses == 'NIL': 88 88 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 89 94 # use gpa_boundaries above 90 95 return self.getClassFromCGPA(
Note: See TracChangeset for help on using the changeset viewer.