mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't die if the reps data is empty
This commit is contained in:
parent
b52a2eed6d
commit
5914761ff8
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ group by day order by day""" % (self._limit(), lim),
|
||||||
_("Review Time"))
|
_("Review Time"))
|
||||||
|
|
||||||
def _repsGraph(self, data, days, reptitle, timetitle):
|
def _repsGraph(self, data, days, reptitle, timetitle):
|
||||||
|
if not data:
|
||||||
|
return ""
|
||||||
d = data
|
d = data
|
||||||
conf = dict(
|
conf = dict(
|
||||||
xaxis=dict(tickDecimals=0),
|
xaxis=dict(tickDecimals=0),
|
||||||
|
|
Loading…
Reference in a new issue