[importers] NoHookRQLObjectStore lacks flush(), (closes #2583883)
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Fri, 25 Jan 2013 09:01:55 +0100
changeset 38 208aa483385c
parent 37 9551c9e41fed
child 153 d79a9d8c14f3
[importers] NoHookRQLObjectStore lacks flush(), (closes #2583883)
importers/localizer.py
--- a/importers/localizer.py	Thu Jan 17 15:09:15 2013 +0100
+++ b/importers/localizer.py	Fri Jan 25 09:01:55 2013 +0100
@@ -350,7 +350,7 @@
         snp['chromosome'] = chr_map[snp['chromosome']]
         snp = store.create_entity('Snp', **snp)
         snp_eids.append(snp.eid)
-        if ind and ind % 100000 == 0:
+        if sqlgen_store and ind and ind % 100000 == 0:
             store.flush()
     # Flush/Commit
     if sqlgen_store: