Merge branch 'master' of https://github.com/dsnopek/anki-sync-server
This commit is contained in:
commit
a99f4f6176
@ -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