mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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
|
self.endOfDay = time.mktime(now) - midnightOffset
|
||||||
t = time.time()
|
t = time.time()
|
||||||
young = self.deck.s.all("""
|
young = self.deck.s.all("""
|
||||||
select interval, combinedDue
|
select interval, combinedDue from cards
|
||||||
from cards where relativeDelay between 0 and 1 and interval <= 21""")
|
where relativeDelay between 0 and 1 and type >= 0 and interval <= 21""")
|
||||||
mature = self.deck.s.all("""
|
mature = self.deck.s.all("""
|
||||||
select interval, combinedDue
|
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),
|
for (src, dest) in [(young, daysYoung),
|
||||||
(mature, daysMature)]:
|
(mature, daysMature)]:
|
||||||
|
|
Loading…
Reference in a new issue