From c4f9a35af4b07e50e7f3b50c9488d5bd2f739b40 Mon Sep 17 00:00:00 2001 From: Jian Li Date: Sun, 10 Mar 2019 17:30:14 -0700 Subject: [PATCH] Restrict bin count to 100 --- anki/stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index b69392fc9..f9bd7fce0 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -206,9 +206,9 @@ from revlog where id > ? """+lim, (self.col.sched.dayCutoff-86400)*1000) end, chunk = 52, 7 elif self.type == 2: end = None - if self._deckAge(by) < 365: + if self._deckAge(by) <= 100: chunk = 1 - elif self._deckAge(by) < 1000: + elif self._deckAge(by) <= 700: chunk = 7 else: chunk = 31