mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
whoops, they're in miliseconds
This commit is contained in:
parent
cddbf02734
commit
c17758b01c
1 changed files with 2 additions and 2 deletions
|
@ -61,13 +61,13 @@ class Scheduler(object):
|
|||
def timeToday(self):
|
||||
"Time spent learning today, in seconds."
|
||||
return self.deck.db.scalar(
|
||||
"select sum(taken) from revlog where time > ?",
|
||||
"select sum(taken/1000.0) from revlog where time > ?*1000",
|
||||
self.dayCutoff-86400) or 0
|
||||
|
||||
def repsToday(self):
|
||||
"Number of cards answered today."
|
||||
return self.deck.db.scalar(
|
||||
"select count() from revlog where time > ?",
|
||||
"select count() from revlog where time > ?*1000",
|
||||
self.dayCutoff-86400)
|
||||
|
||||
def cardQueue(self, card):
|
||||
|
|
Loading…
Reference in a new issue