From 02a124b66d1ebb27fdf79f320e02d954d4325012 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 6 Dec 2008 17:17:55 +0900 Subject: [PATCH] thinko in last change --- anki/deck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index 8c335f1ab..e8feddd3d 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -478,10 +478,10 @@ select count(*) from cards where type = 0 and isDue = 1 and combinedDue <= :t""", t=time.time()) self.revCount = self.s.scalar( "select count(*) from cards where " - "type = 1 and priority in (1,2,3,4)") + "type = 1 and priority in (1,2,3,4) and isDue = 1") self.newCount = self.s.scalar( "select count(*) from cards where " - "type = 2 and priority in (1,2,3,4)") + "type = 2 and priority in (1,2,3,4) and isDue = 1") def checkDue(self): "Mark expired cards due, and update counts."