mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
make sure we display review graph even if there's only a single bar
This commit is contained in:
parent
fb06966398
commit
f0a0df5a29
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue