mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
fix young count
This commit is contained in:
parent
43f8623d78
commit
b40dbd6fb8
1 changed files with 3 additions and 3 deletions
|
@ -69,9 +69,9 @@ class Graphs(object):
|
|||
|
||||
def _due(self, days=7):
|
||||
return self.deck.db.all("""
|
||||
select due-:today,
|
||||
count(), -- all
|
||||
sum(case when ivl >= 21 then 1 else 0 end) -- mature
|
||||
select due-:today as day,
|
||||
sum(case when ivl < 21 then 1 else 0 end), -- yng
|
||||
sum(case when ivl >= 21 then 1 else 0 end) -- mtr
|
||||
from cards
|
||||
where queue = 2 and due < (:today+:days) %s
|
||||
group by due order by due""" % self._limit(),
|
||||
|
|
Loading…
Reference in a new issue