diff --git a/anki/deck.py b/anki/deck.py index e6619b7be..8c53c46d8 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -1316,9 +1316,12 @@ where id in %s""" % ids2str(ids), new=new.id, ord=new.ordinal) self.updateCardQACacheFromIds(factIds, type="facts") self.flushMod() self.updateProgress() - self.updateCardTags() + cardIds = self.s.column0( + "select id from cards where factId in %s" % + ids2str(factIds)) + self.updateCardTags(cardIds) self.updateProgress() - self.updateAllPriorities() + self.updatePriorities(cardIds) self.updateProgress() self.rebuildCounts() self.refresh()