mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
update all card priorities at once on add
This commit is contained in:
parent
9df4b3278f
commit
bc7bdc24c4
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue