Changeset 14351 for main


Ignore:
Timestamp:
16 Dec 2016, 11:49:01 (8 years ago)
Author:
Henrik Bettermann
Message:

Use old name 'score' instead of 'total'.

File:
1 edited

Legend:

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

    r14350 r14351  
    4747    return co_ticket
    4848
    49 def getGradeWeightFromScore(total, student):
     49def getGradeWeightFromScore(score, student):
    5050    """Nigerian Course Grading System
    5151    """
    52     if total is None:
     52    if score is None:
    5353        return (None, None)
    54     if total >= 70:
     54    if score >= 70:
    5555        return ('A',5)
    56     if total >= 60:
     56    if score >= 60:
    5757        return ('B',4)
    58     if total >= 50:
     58    if score >= 50:
    5959        return ('C',3)
    60     if total >= 45:
     60    if score >= 45:
    6161        return ('D',2)
    62     if total >= 40 and student.entry_session < 2013:
     62    if score >= 40 and student.entry_session < 2013:
    6363        return ('E',1)
    6464    return ('F',0)
Note: See TracChangeset for help on using the changeset viewer.