Ignore:
Timestamp:
31 Jan 2017, 08:28:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Use ticket.passmark for determining the grade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r14392 r14477  
    4747    return co_ticket
    4848
    49 def getGradeWeightFromScore(score, student):
     49def getGradeWeightFromScore(score, ticket):
    5050    """Nigerian Course Grading System
    5151    """
     
    6060    if score >= 45:
    6161        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
    6363        return ('E',1)
    6464    return ('F',0)
     
    385385        """Returns the grade calculated from total score.
    386386        """
    387         return getGradeWeightFromScore(self.total_score, self.student)[0]
     387        return getGradeWeightFromScore(self.total_score, self)[0]
    388388
    389389    @property
     
    391391        """Returns the weight calculated from total score.
    392392        """
    393         return getGradeWeightFromScore(self.total_score, self.student)[1]
     393        return getGradeWeightFromScore(self.total_score, self)[1]
    394394
    395395CourseTicket = attrs_to_fields(CourseTicket)
Note: See TracChangeset for help on using the changeset viewer.