Correctly store 'time' in the revlog, when 'timerStarted' is passed to 'answer_card'.
This commit is contained in:
parent
4e2c697abc
commit
04fb2df995
@ -517,8 +517,10 @@ class CollectionHandler(RestHandlerBase):
|
|||||||
ease = int(req.data['ease'])
|
ease = int(req.data['ease'])
|
||||||
|
|
||||||
card = col.getCard(card_id)
|
card = col.getCard(card_id)
|
||||||
if card.timerStarted is None:
|
if req.data.has_key('timerStarted'):
|
||||||
card.timerStarted = float(req.data.get('timeStarted', time.time()))
|
card.timerStarted = float(req.data['timerStarted'])
|
||||||
|
else:
|
||||||
|
card.timerStarted = time.time()
|
||||||
|
|
||||||
col.sched.answerCard(card, ease)
|
col.sched.answerCard(card, ease)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user