mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
don't rebuild counts in applyPayload(), as the deck will be reopened
This commit is contained in:
parent
4c8f2d3b47
commit
039af66a9d
1 changed files with 1 additions and 2 deletions
|
@ -15,6 +15,7 @@ getDecks(): return a list of deck names & modtimes
|
||||||
summary(lastSync): a list of all objects changed after lastSync
|
summary(lastSync): a list of all objects changed after lastSync
|
||||||
applyPayload(payload): apply any sent changes and return any changed remote
|
applyPayload(payload): apply any sent changes and return any changed remote
|
||||||
objects
|
objects
|
||||||
|
finish(): save deck on server after payload applied and response received
|
||||||
createDeck(name): create a deck on the server
|
createDeck(name): create a deck on the server
|
||||||
|
|
||||||
Full sync support is not documented yet.
|
Full sync support is not documented yet.
|
||||||
|
@ -184,8 +185,6 @@ class SyncTools(object):
|
||||||
self.deck.updateCardTags(cardIds)
|
self.deck.updateCardTags(cardIds)
|
||||||
# rebuild priorities on server
|
# rebuild priorities on server
|
||||||
self.rebuildPriorities(cardIds, self.serverExcludedTags)
|
self.rebuildPriorities(cardIds, self.serverExcludedTags)
|
||||||
# rebuild due counts
|
|
||||||
self.deck.rebuildCounts()
|
|
||||||
return reply
|
return reply
|
||||||
|
|
||||||
def applyPayloadReply(self, reply):
|
def applyPayloadReply(self, reply):
|
||||||
|
|
Loading…
Reference in a new issue