mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
use cardLimit() in cardsDueBy(), not just earliestTime()
This commit is contained in:
parent
82231a71b2
commit
2ca1627add
1 changed files with 5 additions and 3 deletions
|
@ -1159,9 +1159,11 @@ limit 1""" % self.delay0))
|
||||||
|
|
||||||
def cardsDueBy(self, time):
|
def cardsDueBy(self, time):
|
||||||
"Number of cards due at TIME. Ignore new cards"
|
"Number of cards due at TIME. Ignore new cards"
|
||||||
return self.s.scalar("""
|
return self.s.scalar(
|
||||||
select count(id) from cards where combinedDue < :time
|
self.cardLimit(
|
||||||
and type between 0 and 1""", time=time)
|
"revActive", "revInactive",
|
||||||
|
"select count(*) from cards c where type between 0 and 1 "
|
||||||
|
"and combinedDue < :lim"), lim=time)
|
||||||
|
|
||||||
def deckFinishedMsg(self):
|
def deckFinishedMsg(self):
|
||||||
spaceSusp = ""
|
spaceSusp = ""
|
||||||
|
|
Loading…
Reference in a new issue