From aa753d35a502b7820f1905a9aaf074686fc1df99 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 14 Nov 2010 07:37:51 +0900 Subject: [PATCH] don't include suspended cards in graphs --- anki/graphs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)]: