Changeset 14464
- Timestamp:
- 26 Jan 2017, 11:03:09 (8 years ago)
- 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
r14463 r14464 181 181 # final level student remark 182 182 if end_level and self.level >= end_level: 183 if self.gpa_params[1] == 0: 184 # No credits weighted at this level 185 return 'NEOR' 183 if self.level > end_level: 184 # spill-over level 185 if self.gpa_params[1] == 0: 186 # no credits taken 187 return 'NEOR' 188 else: 189 if self.gpa_params[1] < 30: 190 # credits taken below limit 191 return 'NEOR' 186 192 if self.level_verdict in ('FRNS', 'NEOR', 'NEOV'): 187 193 return self.level_verdict … … 208 214 # returning student remark 209 215 if self.gpa_params[1] < 30: 210 # Credits taken below limit216 # credits taken below limit 211 217 return 'Probation' 212 218 if self.level_verdict in ('FRNS', 'NEOR', 'NEOV'): -
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.