mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
don't include suspended cards in graphs
This commit is contained in:
parent
1f8adc791a
commit
aa753d35a5
1 changed files with 3 additions and 3 deletions
|
@ -78,11 +78,11 @@ class DeckGraphs(object):
|
|||
self.endOfDay = time.mktime(now) - midnightOffset
|
||||
t = time.time()
|
||||
young = self.deck.s.all("""
|
||||
select interval, combinedDue
|
||||
from cards where relativeDelay between 0 and 1 and interval <= 21""")
|
||||
select interval, combinedDue from cards
|
||||
where relativeDelay between 0 and 1 and type >= 0 and interval <= 21""")
|
||||
mature = self.deck.s.all("""
|
||||
select interval, combinedDue
|
||||
from cards where relativeDelay = 1 and interval > 21""")
|
||||
from cards where relativeDelay = 1 and type >= 0 and interval > 21""")
|
||||
|
||||
for (src, dest) in [(young, daysYoung),
|
||||
(mature, daysMature)]:
|
||||
|
|
Loading…
Reference in a new issue