Changeset 18373
- Timestamp:
- 4 Dec 2026, 10:23:32 (less than one hour ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/studylevel.py
r18343 r18373 126 126 if study_mode and study_mode.startswith('dp'): 127 127 is_dp = True 128 failed_limit = 1.5 129 if self.student.entry_session < 2013: 130 failed_limit = 1.0 128 failed_limit = 1.0 131 129 # final level student remark 132 130 if end_level and self.level >= end_level: … … 222 220 223 221 @property 222 def _getGradeWeightFromScore(self): 223 """Nigerian Course Grading System 224 """ 225 if self.total_score is None: 226 return (None, None) 227 if self.total_score >= 70: 228 return ('A',5) 229 if self.total_score >= 60: 230 return ('B',4) 231 if self.total_score >= 50: 232 return ('C',3) 233 if self.total_score >= 45: 234 return ('D',2) 235 if self.total_score >= self.passmark: # passmark changed in 2013 from 40 to 45 236 return ('E',1) 237 return ('F',0) 238 239 @property 224 240 def total_score(self): 225 241 """Returns ca + score or imported total score.
Note: See TracChangeset for help on using the changeset viewer.
