Changeset 14477 for main/waeup.kofa/trunk/src
- Timestamp:
- 31 Jan 2017, 08:28:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r14392 r14477 47 47 return co_ticket 48 48 49 def getGradeWeightFromScore(score, student):49 def getGradeWeightFromScore(score, ticket): 50 50 """Nigerian Course Grading System 51 51 """ … … 60 60 if score >= 45: 61 61 return ('D',2) 62 if score >= 40 and student.entry_session < 2013:62 if score >= ticket.passmark: # passmark changed in 2013 from 40 to 45 63 63 return ('E',1) 64 64 return ('F',0) … … 385 385 """Returns the grade calculated from total score. 386 386 """ 387 return getGradeWeightFromScore(self.total_score, self .student)[0]387 return getGradeWeightFromScore(self.total_score, self)[0] 388 388 389 389 @property … … 391 391 """Returns the weight calculated from total score. 392 392 """ 393 return getGradeWeightFromScore(self.total_score, self .student)[1]393 return getGradeWeightFromScore(self.total_score, self)[1] 394 394 395 395 CourseTicket = attrs_to_fields(CourseTicket)
Note: See TracChangeset for help on using the changeset viewer.