Changeset 14663 for main/waeup.aaue/trunk/src
- Timestamp:
- 30 Mar 2017, 19:13:26 (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
r14662 r14663 35 35 from waeup.aaue.students.interfaces import ( 36 36 ICustomStudentStudyLevel, ICustomCourseTicket) 37 from waeup.aaue.students.utils import MINIMUM_UNITS_THRESHOLD 37 38 from waeup.aaue.interfaces import MessageFactory as _ 38 39 … … 195 196 # no credits taken 196 197 return 'NER' 197 elif self.gpa_params[1] < 30:198 elif self.gpa_params[1] < MINIMUM_UNITS_THRESHOLD: 198 199 # credits taken below limit 199 200 return 'NER' … … 230 231 # no credits taken 231 232 return 'NER' 232 if self.gpa_params[1] < 30:233 if self.gpa_params[1] < MINIMUM_UNITS_THRESHOLD: 233 234 # credits taken below limit 234 235 return 'Probation' -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r14660 r14663 28 28 from waeup.aaue.interfaces import MessageFactory as _ 29 29 30 MINIMUM_UNITS_THRESHOLD = 15 31 30 32 class CustomStudentsUtils(NigeriaStudentsUtils): 31 33 """A collection of customized methods. … … 80 82 # no credits taken 81 83 return 0 82 elif level_obj.gpa_params[1] < 30:84 elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD: 83 85 # credits taken below limit 84 86 return 0 … … 90 92 and not not_taken_courses == 'Nil': 91 93 return 0 92 elif level_obj.gpa_params[1] < 30:94 elif level_obj.gpa_params[1] < MINIMUM_UNITS_THRESHOLD: 93 95 # credits taken below limit 94 96 return 0
Note: See TracChangeset for help on using the changeset viewer.