Changeset 2982 for WAeUP_SRP/base/skins
- Timestamp:
- 6 Jan 2008, 22:49:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/ti_441_resolve_part2.py
r2981 r2982 83 83 sl = student_record.lga.split(' / ') 84 84 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 88 90 state = sl[0].lower().strip() 89 91 lga = sl[1].lower().strip() … … 94 96 if len(d) and not len(d) % commit_after: 95 97 logger.info("found %d correct state/lga combinations of %d so far" % (len(d),count)) 96 state_lga = state + '_' + lga97 98 if state in states: 98 99 found = False … … 107 108 if found: 108 109 #msg = "found %s for %s" % (state_lga,student_record.id) 110 state_lga = state + '_' + lga 109 111 d[student_record.id] = state_lga 110 112 #else: … … 118 120 to_edit = len(d) 119 121 logger.info("found %d correct state/lga combinations of %d" % (to_edit,count)) 120 return121 122 122 123 edited = 1
Note: See TracChangeset for help on using the changeset viewer.