fix sync getting stuck in a loop when changes is a multiple of 250

This commit is contained in:
Damien Elmes 2020-03-24 19:30:35 +10:00
parent 6143a7e218
commit e29d380d4c

View file

@ -279,7 +279,7 @@ from notes where %s"""
lim = 250
while self.tablesLeft and lim:
curTable = self.tablesLeft[0]
if not self.chunkRows:
if self.chunkRows is None:
self.chunkRows = self.getChunkRows(curTable)
rows = self.chunkRows[:lim]
self.chunkRows = self.chunkRows[lim:]