mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
dueCounts()
This commit is contained in:
parent
362ae3eee2
commit
af2b2373b9
1 changed files with 4 additions and 1 deletions
|
@ -67,10 +67,13 @@ class Scheduler(object):
|
||||||
def counts(self):
|
def counts(self):
|
||||||
"Does not include fetched but unanswered."
|
"Does not include fetched but unanswered."
|
||||||
if self.deck.conf['counts'] == COUNT_REMAINING:
|
if self.deck.conf['counts'] == COUNT_REMAINING:
|
||||||
return (self.newCount, self.lrnCount, self.revCount)
|
return self.dueCounts()
|
||||||
else:
|
else:
|
||||||
return self.answeredCounts()
|
return self.answeredCounts()
|
||||||
|
|
||||||
|
def dueCounts(self):
|
||||||
|
return (self.newCount, self.lrnCount, self.revCount)
|
||||||
|
|
||||||
def answeredCounts(self):
|
def answeredCounts(self):
|
||||||
t = self.deck.groups.top()
|
t = self.deck.groups.top()
|
||||||
return (t['newToday'][1], t['lrnToday'][1], t['revToday'][1])
|
return (t['newToday'][1], t['lrnToday'][1], t['revToday'][1])
|
||||||
|
|
Loading…
Reference in a new issue