mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05:00
off by one in zip count comparison
This commit is contained in:
parent
4e900b4608
commit
54e2d42fa6
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ class MediaManager(object):
|
|||
z.write(fname, str(cnt))
|
||||
files[str(cnt)] = unicodedata.normalize("NFC", fname)
|
||||
sz += os.path.getsize(fname)
|
||||
if sz > SYNC_ZIP_SIZE or cnt > SYNC_ZIP_COUNT:
|
||||
if sz >= SYNC_ZIP_SIZE or cnt >= SYNC_ZIP_COUNT:
|
||||
break
|
||||
cnt += 1
|
||||
z.writestr("_meta", json.dumps(files))
|
||||
|
|
|
|||
Loading…
Reference in a new issue