count per-day learning cards in deck list

This commit is contained in:
Damien Elmes 2012-08-29 13:19:57 +09:00
parent a742784873
commit 20c0ae2e33

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 = 2
(select 1 from cards where did = ? and queue in (2,3) and
and due <= ? limit ?)""",
did, self.today, lim)