mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
deck list counts should be reps not cards, to match study screen
This commit is contained in:
parent
f6f6649062
commit
d06dccad32
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
##########################################################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue