Changeset 16708
- Timestamp:
- 9 Nov 2021, 11:00:59 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r16694 r16708 128 128 certificate = getattr(level_obj.__parent__,'certificate', None) 129 129 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'): 132 131 return 0 133 132 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 134 141 failed_courses = level_obj.passed_params[4] 135 142 not_taken_courses = level_obj.passed_params[5] … … 139 146 and not not_taken_courses == 'Nil': 140 147 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 142 150 return 0 143 151 # use gpa_boundaries above
Note: See TracChangeset for help on using the changeset viewer.