mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
make sure learn more considers inactive cards
This commit is contained in:
parent
acb72327b2
commit
e4447818ff
1 changed files with 5 additions and 3 deletions
|
@ -524,9 +524,11 @@ order by combinedDue limit %d""" % self.queueLimit, lim=self.dueCutoff)
|
|||
self.scheduler = "learnMore"
|
||||
|
||||
def _rebuildLearnMoreCount(self):
|
||||
self.newCount = self.s.scalar("""
|
||||
select count() from cards where type = 2 and combinedDue < :now
|
||||
""", now=self.dueCutoff)
|
||||
self.newCount = self.s.scalar(
|
||||
self.cardLimit(
|
||||
"newActive", "newInactive",
|
||||
"select count(*) from cards c where type = 2 "
|
||||
"and combinedDue < :lim"), lim=self.dueCutoff)
|
||||
self.spacedCards = []
|
||||
|
||||
def _updateLearnMoreCountToday(self):
|
||||
|
|
Loading…
Reference in a new issue