From ac5a92214e1a9b234cc1c167c06019c8beb5c8b9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 May 2009 01:50:09 +0900 Subject: [PATCH] don't include new cards in workload calculation --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index 9386d4b9f..ebfa3f7ed 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -441,7 +441,7 @@ class DeckStats(object): return (self.deck.s.scalar(""" select count(id) from cards where combinedDue < :cutoff -and priority > 0""", cutoff=cutoff) or 0) / float(period) +and priority > 0 and type in (0,1)""", cutoff=cutoff) or 0) / float(period) def getPastWorkloadPeriod(self, period): cutoff = time.time() - 86400 * period