Changeset 14351 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 16 Dec 2016, 11:49:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r14350 r14351 47 47 return co_ticket 48 48 49 def getGradeWeightFromScore( total, student):49 def getGradeWeightFromScore(score, student): 50 50 """Nigerian Course Grading System 51 51 """ 52 if totalis None:52 if score is None: 53 53 return (None, None) 54 if total>= 70:54 if score >= 70: 55 55 return ('A',5) 56 if total>= 60:56 if score >= 60: 57 57 return ('B',4) 58 if total>= 50:58 if score >= 50: 59 59 return ('C',3) 60 if total>= 45:60 if score >= 45: 61 61 return ('D',2) 62 if total>= 40 and student.entry_session < 2013:62 if score >= 40 and student.entry_session < 2013: 63 63 return ('E',1) 64 64 return ('F',0)
Note: See TracChangeset for help on using the changeset viewer.