only update priorities on due cards

This commit is contained in:
Damien Elmes 2009-02-05 00:52:05 +09:00
parent d0fa667717
commit 3a1c79e1ce

View file

@ -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."