From c236bc83270f4d7dacb2a72a714777ee94ff0aaa Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 23 May 2012 13:08:51 +0900 Subject: [PATCH] don't show hourly perf. graph if few datapoints --- anki/stats.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anki/stats.py b/anki/stats.py index 32b4f2577..3dc0f1fe8 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -504,6 +504,8 @@ order by thetype, ease""" % lim) mcount = d[2] shifted.sort() counts.sort() + if len(counts) < 4: + return "" for d in shifted: hour = d[0] pct = d[1]