From f0a0df5a29d5daeeb7e2637e7c63451789ef8bbc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Oct 2012 23:24:13 +0900 Subject: [PATCH] make sure we display review graph even if there's only a single bar --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index 5e8e4daf5..9c62b6ef0 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -318,7 +318,7 @@ group by day order by day""" % (self._limit(), lim), alltot.append((row[0], allcnt)) ret = [] for (n, col, lab) in spec: - if len(totd[n]) > 1 and totcnt[n]: + if len(totd[n]) and totcnt[n]: # bars ret.append(dict(data=sep[n], color=col, label=lab)) # lines