deck list counts should be reps not cards, to match study screen

This commit is contained in:
Damien Elmes 2012-02-14 12:27:17 +09:00
parent f6f6649062
commit d06dccad32

View file

@ -506,9 +506,9 @@ where queue = 1 and type = 2
def _lrnForDeck(self, did):
return self.col.db.scalar(
"""
select count() from
(select 1 from cards where did = ? and queue = 1 and due < ? limit ?)""",
did, intTime() + self.col.conf['collapseTime'], self.reportLimit)
select sum(left) from
(select left from cards where did = ? and queue = 1 and due < ? limit ?)""",
did, intTime() + self.col.conf['collapseTime'], self.reportLimit) or 0
# Reviews
##########################################################################