mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
log mediaChangesZip()
This commit is contained in:
parent
a93c3423e3
commit
014787c4cb
1 changed files with 2 additions and 0 deletions
|
@ -454,10 +454,12 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0);
|
||||||
normname = unicodedata.normalize("NFC", fname)
|
normname = unicodedata.normalize("NFC", fname)
|
||||||
|
|
||||||
if csum:
|
if csum:
|
||||||
|
self.col.log("+media zip", fname)
|
||||||
z.write(fname, str(c))
|
z.write(fname, str(c))
|
||||||
meta.append((normname, str(c)))
|
meta.append((normname, str(c)))
|
||||||
sz += os.path.getsize(fname)
|
sz += os.path.getsize(fname)
|
||||||
else:
|
else:
|
||||||
|
self.col.log("-media zip", fname)
|
||||||
meta.append((normname, ""))
|
meta.append((normname, ""))
|
||||||
|
|
||||||
if sz >= SYNC_ZIP_SIZE:
|
if sz >= SYNC_ZIP_SIZE:
|
||||||
|
|
Loading…
Reference in a new issue