Changeset 2514 for WAeUP_SRP/base/skins/waeup_utilities
- Timestamp:
- 3 Nov 2007, 15:27:54 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/moveCourseResults.py
r2513 r2514 47 47 cocount = 0 48 48 commit_after = 20 49 moved_sids = context.course_results.uniqueValuesFor('student_id') 49 50 for brain in brains: 50 51 count += 1 51 already_moved = aq_results(Eq('student_id',brain.id)) 52 if len(already_moved) > 0: 52 if brain.id in moved_sids: 53 53 continue 54 54 try: … … 71 71 context.waeup_tool.doCommit() 72 72 logger.info("Committing %s transactions, total %s" % (commit_after,count)) 73 #cocount += 174 #if cocount > 3:75 #break73 cocount += 1 74 if cocount > 2: 75 break 76 76 77 77 msg = "finished moving results of %d students" % (moved)
Note: See TracChangeset for help on using the changeset viewer.