[dataimport] actually commit every desired number...
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 15 Apr 2011 08:18:06 +0200
changeset 7227 23d9c1f89c96
parent 7223 7a58581d842c
child 7228 9d04e12d2d39
[dataimport] actually commit every desired number...
dataimport.py
--- a/dataimport.py	Thu Apr 14 14:18:46 2011 +0200
+++ b/dataimport.py	Fri Apr 15 08:18:06 2011 +0200
@@ -133,7 +133,7 @@
     """
     for idx, item in enumerate(iterable):
         yield item
-        if idx % number:
+        if not idx % number:
             func()
     func()