Changeset 1486
- Timestamp:
- 24 Feb 2007, 21:27:33 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelForNewStudents.py
r1485 r1486 48 48 query = Eq('level','100') 49 49 res = aq_students(query) 50 set_trace()50 #set_trace() 51 51 count = 0 52 commit_count = 0 52 53 logger.info("started for %s students" % len(res)) 53 54 for sbrain in res: … … 74 75 'current_verdict': 'N/A'}) 75 76 count += 1 76 if count > 10: 77 break 77 commit_count += 1 78 if commit_count > 1000: 79 context.waeup_tool.doCommit() 80 logger.info("committing %s transactions total %s" % (commit_count,count)) 81 commit_count = 0 78 82 rwrite("%s: %s %s %s <br />" % (count,sbrain.id,entry_mode,level)) 79 83 rwrite("finished")
Note: See TracChangeset for help on using the changeset viewer.