Only store all the entities once in the ModuleConversion, after the for loop.
--- a/app/soc/tasks/updates/module_conversion.py Thu Oct 01 20:36:57 2009 +0200
+++ b/app/soc/tasks/updates/module_conversion.py Thu Oct 01 20:37:55 2009 +0200
@@ -87,8 +87,8 @@
**gsoc_properties)
gsoc_programs.append(gsoc_program_entity)
- # store all the new GSoCPrograms
- db.put(gsoc_programs)
+ # store all the new GSoCPrograms
+ db.put(gsoc_programs)
# task completed, return
return
@@ -132,8 +132,8 @@
**gsoc_properties)
gsoc_orgs.append(gsoc_org_entity)
- # store all the new GSoCOrganizations
- db.put(gsoc_orgs)
+ # store all the new GSoCOrganizations
+ db.put(gsoc_orgs)
# task completed, return
return