diff --git a/anki/graphs.py b/anki/graphs.py index 357833934..8fdd6c6fa 100644 --- a/anki/graphs.py +++ b/anki/graphs.py @@ -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)]: