Only store all the entities once in the ModuleConversion, after the for loop.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 01 Oct 2009 20:37:55 +0200
changeset 2999 d933a6da5eef
parent 2998 9c34768346da
child 3000 733d07eac729
Only store all the entities once in the ModuleConversion, after the for loop.
app/soc/tasks/updates/module_conversion.py
--- 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