mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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):
|
||||
"Number of cards due at TIME. Ignore new cards"
|
||||
return self.s.scalar("""
|
||||
select count(id) from cards where combinedDue < :time
|
||||
and type between 0 and 1""", time=time)
|
||||
return self.s.scalar(
|
||||
self.cardLimit(
|
||||
"revActive", "revInactive",
|
||||
"select count(*) from cards c where type between 0 and 1 "
|
||||
"and combinedDue < :lim"), lim=time)
|
||||
|
||||
def deckFinishedMsg(self):
|
||||
spaceSusp = ""
|
||||
|
|
Loading…
Reference in a new issue