thinko in last change

This commit is contained in:
Damien Elmes 2008-12-06 17:17:55 +09:00
parent d480e42f55
commit 02a124b66d

View file

@ -478,10 +478,10 @@ select count(*) from cards where type = 0 and isDue = 1
and combinedDue <= :t""", t=time.time()) and combinedDue <= :t""", t=time.time())
self.revCount = self.s.scalar( self.revCount = self.s.scalar(
"select count(*) from cards where " "select count(*) from cards where "
"type = 1 and priority in (1,2,3,4)") "type = 1 and priority in (1,2,3,4) and isDue = 1")
self.newCount = self.s.scalar( self.newCount = self.s.scalar(
"select count(*) from cards where " "select count(*) from cards where "
"type = 2 and priority in (1,2,3,4)") "type = 2 and priority in (1,2,3,4) and isDue = 1")
def checkDue(self): def checkDue(self):
"Mark expired cards due, and update counts." "Mark expired cards due, and update counts."