From bc7bdc24c418e44bb0a64777757a657b4a72975b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 9 May 2009 03:25:24 +0900 Subject: [PATCH] update all card priorities at once on add --- anki/deck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index 5f7b7d75a..f38bcd59a 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -979,8 +979,7 @@ where type = 2 and priority in (1,2,3,4)""") or 0 self.flushMod() cards.append(card) self.updateFactTags([fact.id]) - for card in cards: - self.updatePriority(card) + self.updatePriorities([c.id for c in cards]) self.cardCount += len(cards) self.newCount += len(cards) # keep track of last used tags for convenience