mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
must commit on concurrent update
This commit is contained in:
parent
653f001da0
commit
a93c3423e3
1 changed files with 3 additions and 1 deletions
|
@ -799,9 +799,11 @@ class MediaSyncer(object):
|
|||
|
||||
if serverLastUsn - processedCnt == lastUsn:
|
||||
self.col.log("lastUsn in sync, updating local")
|
||||
self.col.media.setLastUsn(serverLastUsn)
|
||||
self.col.media.setLastUsn(serverLastUsn) # commits
|
||||
else:
|
||||
self.col.log("concurrent update, skipping usn update")
|
||||
# commit for markClean
|
||||
self.col.media.db.commit()
|
||||
updateConflict = True
|
||||
|
||||
if updateConflict:
|
||||
|
|
Loading…
Reference in a new issue