From 7c1ff307ed317beee4eaf87deae7fce9991ebcfe Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 30 Aug 2012 10:02:49 +0900 Subject: [PATCH] fix spurious and --- anki/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 22738b6ab..aea099c69 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -681,7 +681,7 @@ select sum(left/1000) from return self.col.db.scalar( """ select count() from -(select 1 from cards where did = ? and queue in (2,3) and +(select 1 from cards where did = ? and queue in (2,3) and due <= ? limit ?)""", did, self.today, lim)