Changeset 16652 for main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
- Timestamp:
- 29 Sep 2021, 10:03:16 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r16179 r16652 123 123 certificate = getattr(level_obj.__parent__,'certificate', None) 124 124 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 125 128 if end_level and level_obj.level >= end_level: 126 if level_obj.level > end_level:127 # spill-over level128 if level_obj.gpa_params[1] == 0:129 # no credits taken130 return 0131 elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:132 # credits taken below limit133 return 0134 129 failed_courses = level_obj.passed_params[4] 135 130 not_taken_courses = level_obj.passed_params[5] … … 139 134 and not not_taken_courses == 'Nil': 140 135 return 0 141 elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD:142 # credits taken below limit143 return 0144 136 if level_obj.level_verdict in ('FRNS', 'NER', 'NYV'): 145 137 return 0
Note: See TracChangeset for help on using the changeset viewer.