Changeset 2982 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
6 Jan 2008, 22:49:28 (17 years ago)
Author:
Henrik Bettermann
Message:

set key value correctly (the key value was often wrong!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_utilities/ti_441_resolve_part2.py

    r2981 r2982  
    8383    sl = student_record.lga.split(' / ')
    8484    if len(sl) != 2:
    85         logger.info("found invalid lga %s of %s" % (student_record.lga,student_record.id))
    86         #rwrite("wrong size %s: %s" % (student_record.id,sl))
    87         continue
     85        sl = student_record.lga.split('/')
     86        if len(sl) != 2:
     87            logger.info("found invalid lga %s of %s" % (student_record.lga,student_record.id))
     88            #rwrite("wrong size %s: %s" % (student_record.id,sl))
     89            continue
    8890    state = sl[0].lower().strip()
    8991    lga = sl[1].lower().strip()
     
    9496    if len(d) and not len(d)  % commit_after:
    9597        logger.info("found %d correct state/lga combinations of %d so far" % (len(d),count))
    96     state_lga = state + '_' + lga
    9798    if state in states:
    9899        found = False
     
    107108        if found:
    108109            #msg = "found %s for %s" % (state_lga,student_record.id)
     110            state_lga = state + '_' + lga
    109111            d[student_record.id] = state_lga
    110112        #else:
     
    118120to_edit = len(d)
    119121logger.info("found %d correct state/lga combinations of %d" % (to_edit,count))
    120 return
    121122
    122123edited = 1
Note: See TracChangeset for help on using the changeset viewer.