fix spurious and

This commit is contained in:
Damien Elmes 2012-08-30 10:02:49 +09:00
parent 20c0ae2e33
commit 7c1ff307ed

View file

@ -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)