fix disabling of answer timer

This commit is contained in:
Damien Elmes 2012-03-16 20:13:25 +09:00
parent 62117453ff
commit f4151d5d83

View file

@ -137,6 +137,8 @@ lapses=?, left=?, odue=?, 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 timeTaken(self): def timeTaken(self):