From 20c1799be56221cb72e77c607048eaedc1eb9000 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 26 Nov 2011 10:28:42 +0900 Subject: [PATCH] add back the ability to show the entire collection stats --- anki/stats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anki/stats.py b/anki/stats.py index 459353cd8..a062414fc 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -96,6 +96,7 @@ class CollectionStats(object): self.type = 0 self.width = 600 self.height = 200 + self.wholeCollection = False def report(self, type=0): # 0=days, 1=weeks, 2=months @@ -668,6 +669,8 @@ $(function () { data=simplejson.dumps(data), conf=simplejson.dumps(conf))) def _limit(self): + if self.wholeCollection: + return ids2str([d['id'] for d in self.col.decks.all()]) return self.col.sched._deckLimit() def _revlogLimit(self):