mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
make sure we return an integer
This commit is contained in:
parent
7acda0f06d
commit
cddbf02734
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class Scheduler(object):
|
|||
"Time spent learning today, in seconds."
|
||||
return self.deck.db.scalar(
|
||||
"select sum(taken) from revlog where time > ?",
|
||||
self.dayCutoff-86400)
|
||||
self.dayCutoff-86400) or 0
|
||||
|
||||
def repsToday(self):
|
||||
"Number of cards answered today."
|
||||
|
|
|
|||
Loading…
Reference in a new issue