mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
separate max timer and show timer options
This commit is contained in:
parent
ccb0c08c9c
commit
4b77d1a08d
1 changed files with 4 additions and 2 deletions
|
@ -137,10 +137,12 @@ lapses=?, left=?, odue=?, odid=?, did=? where id = ?""",
|
||||||
def timeLimit(self):
|
def timeLimit(self):
|
||||||
"Time limit for answering in milliseconds."
|
"Time limit for answering in milliseconds."
|
||||||
conf = self.col.decks.confForDid(self.odid or self.did)
|
conf = self.col.decks.confForDid(self.odid or self.did)
|
||||||
if not conf['timer']:
|
|
||||||
return 0
|
|
||||||
return conf['maxTaken']*1000
|
return conf['maxTaken']*1000
|
||||||
|
|
||||||
|
def shouldShowTimer(self):
|
||||||
|
conf = self.col.decks.confForDid(self.odid or self.did)
|
||||||
|
return conf['timer']
|
||||||
|
|
||||||
def timeTaken(self):
|
def timeTaken(self):
|
||||||
"Time taken to answer card, in integer MS."
|
"Time taken to answer card, in integer MS."
|
||||||
total = int((time.time() - self.timerStarted)*1000)
|
total = int((time.time() - self.timerStarted)*1000)
|
||||||
|
|
Loading…
Reference in a new issue