do partial tag update on sync

This commit is contained in:
Damien Elmes 2009-06-10 20:58:54 +09:00
parent cc50a5fdae
commit fe6fb005b6

View file

@ -166,6 +166,7 @@ class SyncTools(object):
self.deck.rebuildCounts(full=False) self.deck.rebuildCounts(full=False)
def rebuildPriorities(self, cardIds, suspend=[]): def rebuildPriorities(self, cardIds, suspend=[]):
self.deck.updateAllPriorities(partial=True, dirty=False)
self.deck.updatePriorities(cardIds, suspend=suspend, dirty=False) self.deck.updatePriorities(cardIds, suspend=suspend, dirty=False)
def postSyncRefresh(self): def postSyncRefresh(self):
@ -587,7 +588,6 @@ insert or replace into deckVars
del deck['meta'] del deck['meta']
self.applyDict(self.deck, deck) self.applyDict(self.deck, deck)
self.deck.lastSync = self.deck.modified self.deck.lastSync = self.deck.modified
self.deck.updateTagPriorities()
self.deck.updateDynamicIndices() self.deck.updateDynamicIndices()
def bundleStats(self): def bundleStats(self):