mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
make sure we don't commit during a sync
updateDynamicIndices() is done on next deck load anyway
This commit is contained in:
parent
039af66a9d
commit
15763f8f3c
1 changed files with 0 additions and 2 deletions
|
@ -263,7 +263,6 @@ class SyncTools(object):
|
||||||
"Generate a full summary of modtimes for two-way syncing."
|
"Generate a full summary of modtimes for two-way syncing."
|
||||||
# client may have selected an earlier sync time
|
# client may have selected an earlier sync time
|
||||||
self.deck.lastSync = lastSync
|
self.deck.lastSync = lastSync
|
||||||
self.deck.s.commit()
|
|
||||||
# ensure we're flushed first
|
# ensure we're flushed first
|
||||||
self.deck.s.flush()
|
self.deck.s.flush()
|
||||||
return {
|
return {
|
||||||
|
@ -641,7 +640,6 @@ insert or replace into deckVars
|
||||||
(key, value) values (:k, :v)""", k=k, v=v)
|
(key, value) values (:k, :v)""", k=k, v=v)
|
||||||
del deck['meta']
|
del deck['meta']
|
||||||
self.applyDict(self.deck, deck)
|
self.applyDict(self.deck, deck)
|
||||||
self.deck.updateDynamicIndices()
|
|
||||||
|
|
||||||
def bundleStats(self):
|
def bundleStats(self):
|
||||||
def bundleStat(stat):
|
def bundleStat(stat):
|
||||||
|
|
Loading…
Reference in a new issue