Skip to content

Commit

Permalink
Fix the chunks calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed May 13, 2019
1 parent acd15fe commit 29e6280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/imports/mutations/mutation_importer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def parse(self, path, chunk_start, chunk_size):
def _load(self, path, update, **kwargs):

chunks = (
list(range(0, len(path), self.chunk_size))
list(range(0, self.count_lines(path), self.chunk_size))
if self.chunk_size else
[None]
)
Expand Down

0 comments on commit 29e6280

Please sign in to comment.