Changeset 1524 for WAeUP_SRP


Ignore:
Timestamp:
7 Mar 2007, 17:11:00 (18 years ago)
Author:
joachim
Message:

don't decrease level if not successfull

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1510 r1524  
    102102verdict_voc = context.portal_vocabularies.verdicts
    103103if verdict_voc.has_key(student_from_cat.verdict):
    104     info['verdict'] = verdict_voc.get(student_from_cat.verdict).upper()
     104    info['verdict'] = verdict = verdict_voc.get(student_from_cat.verdict).upper()
    105105else:
    106106    info['verdict'] = 'N/A'
     
    111111    else:
    112112        info['sex'] = 'M'
    113     info['level'] = int(student_from_cat.level)-100
     113    if verdict in ('A','B'):
     114        info['level'] = int(student_from_cat.level)-100
     115    else:
     116        info['level'] = int(student_from_cat.level)
    114117else:
    115118    info['sex'] = 'N/A'
Note: See TracChangeset for help on using the changeset viewer.