Skip to content

Commit

Permalink
Fix py3 chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
polsala committed Oct 14, 2024
1 parent 7ea43df commit cd645c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oorq/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def make_chunks(ids, n_chunks=None, size=None):
raise ValueError("only n_chunks or size must be passed")
if not size:
size = int(ceil(len(ids) / n_chunks))
return [ids[x:x + size] for x in xrange(0, len(ids), size)]
return [ids[x:x + size] for x in range(0, len(ids), size)]


def execute(conf_attrs, dbname, uid, obj, method, *args, **kw):
Expand Down

0 comments on commit cd645c1

Please sign in to comment.