Changeset 2487


Ignore:
Timestamp:
31 Oct 2007, 10:16:14 (17 years ago)
Author:
joachim
Message:

fix for recent problem please test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getLevelFromResultsCosCode.py

    r1678 r2487  
    1010# $Id$
    1111lnr = 0
     12found = False
    1213for e in list:
    1314    if e.CosCode == "N/A":
     
    2021    try:
    2122        cc = int(e.CosCode[3])
     23        found = False
    2224    except:
    2325        continue
    2426    if lnr <= cc:
    2527        lnr = cc
     28if found:
     29    return lnr
     30lnr = 0
     31for e in list:
     32    try:
     33        lnr = int(e.Level[0])
     34        break
     35    except:
     36       continue
    2637return lnr
    27 
Note: See TracChangeset for help on using the changeset viewer.