Ignore:
Timestamp:
5 Jun 2013, 09:07:33 (11 years ago)
Author:
Henrik Bettermann
Message:

Use carry over tickets in next level for GPA calculation. Ignore carry over tickets in current level.

File:
1 edited

Legend:

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

    r10276 r10277  
    3131
    3232def find_carry_over(ticket):
    33     return None
     33    studylevel = ticket.__parent__
     34    studycourse = ticket.__parent__.__parent__
     35    levels = sorted(studycourse.keys())
     36    index = levels.index(str(studylevel.level))
     37    try:
     38        next_level = levels[index+1]
     39    except IndexError:
     40        return None
     41    next_studylevel = studycourse[next_level]
     42    co_ticket = next_studylevel.get(ticket.code, None)
     43    return co_ticket
    3444
    3545def getGradeWeightFromScore(score):
Note: See TracChangeset for help on using the changeset viewer.