Changeset 2965


Ignore:
Timestamp:
21 Dec 2007, 20:12:34 (17 years ago)
Author:
Henrik Bettermann
Message:

51 credits for spillovers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/uniben/waeup_custom/getStudyLevelInfo.py

    r2945 r2965  
    8989info['total_credits'] = total_credits
    9090max_credits = 50
    91 if context.getId() == student.end_level:
    92     max_credits = 51
     91try:
     92    if int(context.getId()) >=  int(student.end_level):
     93        max_credits = 51
     94except:
     95    logger.info("%s has strange level id %s" % (student_id,level_id))
    9396info['max_credits'] = max_credits
    9497info['credits_exceeded'] = total_credits > max_credits
Note: See TracChangeset for help on using the changeset viewer.