mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
thinko in last change
This commit is contained in:
parent
d480e42f55
commit
02a124b66d
1 changed files with 2 additions and 2 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue