mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix disabling of answer timer
This commit is contained in:
parent
62117453ff
commit
f4151d5d83
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ lapses=?, left=?, odue=?, did=? where id = ?""",
|
|||
def timeLimit(self):
|
||||
"Time limit for answering in milliseconds."
|
||||
conf = self.col.decks.confForDid(self.odid or self.did)
|
||||
if not conf['timer']:
|
||||
return 0
|
||||
return conf['maxTaken']*1000
|
||||
|
||||
def timeTaken(self):
|
||||
|
|
Loading…
Reference in a new issue