From af2b2373b92ab7b2e1ea3a57125c992c053f0a56 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 9 Sep 2011 18:40:46 +0900 Subject: [PATCH] dueCounts() --- anki/sched.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 5e7f1b288..62d2d6773 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -67,10 +67,13 @@ class Scheduler(object): def counts(self): "Does not include fetched but unanswered." if self.deck.conf['counts'] == COUNT_REMAINING: - return (self.newCount, self.lrnCount, self.revCount) + return self.dueCounts() else: return self.answeredCounts() + def dueCounts(self): + return (self.newCount, self.lrnCount, self.revCount) + def answeredCounts(self): t = self.deck.groups.top() return (t['newToday'][1], t['lrnToday'][1], t['revToday'][1])