mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -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."
|
"Time spent learning today, in seconds."
|
||||||
return self.deck.db.scalar(
|
return self.deck.db.scalar(
|
||||||
"select sum(taken) from revlog where time > ?",
|
"select sum(taken) from revlog where time > ?",
|
||||||
self.dayCutoff-86400)
|
self.dayCutoff-86400) or 0
|
||||||
|
|
||||||
def repsToday(self):
|
def repsToday(self):
|
||||||
"Number of cards answered today."
|
"Number of cards answered today."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue