mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
only update priorities on due cards
This commit is contained in:
parent
d0fa667717
commit
3a1c79e1ce
1 changed files with 2 additions and 1 deletions
|
@ -730,7 +730,8 @@ suspended</a> cards.''', c) % c2
|
|||
"update cards set priority = :pri where cards.id = :id"),
|
||||
newPriorities)
|
||||
self.s.execute(
|
||||
"update cards set isDue = 0 where type in (0,1,2) and priority = 0")
|
||||
"update cards set isDue = 0 where type in (0,1,2) and "
|
||||
"priority = 0 and isDue = 1")
|
||||
|
||||
def updatePriority(self, card):
|
||||
"Update priority on a single card."
|
||||
|
|
Loading…
Reference in a new issue