From 039af66a9df26ce4a60ea1862ba70f916a4957bf Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 7 Dec 2010 11:56:43 +0900 Subject: [PATCH] don't rebuild counts in applyPayload(), as the deck will be reopened --- anki/sync.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anki/sync.py b/anki/sync.py index 665bf70a9..5c62a8f6b 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -15,6 +15,7 @@ getDecks(): return a list of deck names & modtimes summary(lastSync): a list of all objects changed after lastSync applyPayload(payload): apply any sent changes and return any changed remote objects +finish(): save deck on server after payload applied and response received createDeck(name): create a deck on the server Full sync support is not documented yet. @@ -184,8 +185,6 @@ class SyncTools(object): self.deck.updateCardTags(cardIds) # rebuild priorities on server self.rebuildPriorities(cardIds, self.serverExcludedTags) - # rebuild due counts - self.deck.rebuildCounts() return reply def applyPayloadReply(self, reply):