Merge pull request #119 from corollari/master
Add next review times when returning data in guiCurrentCard
This commit is contained in:
commit
88f49a376a
@ -1277,13 +1277,15 @@ class AnkiConnect:
|
|||||||
fields[name] = {'value': note.fields[order], 'order': order}
|
fields[name] = {'value': note.fields[order], 'order': order}
|
||||||
|
|
||||||
if card is not None:
|
if card is not None:
|
||||||
|
buttonList = reviewer._answerButtonList()
|
||||||
return {
|
return {
|
||||||
'cardId': card.id,
|
'cardId': card.id,
|
||||||
'fields': fields,
|
'fields': fields,
|
||||||
'fieldOrder': card.ord,
|
'fieldOrder': card.ord,
|
||||||
'question': card._getQA()['q'],
|
'question': card._getQA()['q'],
|
||||||
'answer': card._getQA()['a'],
|
'answer': card._getQA()['a'],
|
||||||
'buttons': [b[0] for b in reviewer._answerButtonList()],
|
'buttons': [b[0] for b in buttonList],
|
||||||
|
'nextReviews': [reviewer.mw.col.sched.nextIvlStr(reviewer.card, b[0], True) for b in buttonList],
|
||||||
'modelName': model['name'],
|
'modelName': model['name'],
|
||||||
'deckName': self.deckNameFromId(card.did),
|
'deckName': self.deckNameFromId(card.did),
|
||||||
'css': model['css'],
|
'css': model['css'],
|
||||||
|
@ -1555,7 +1555,8 @@ guarantee that your application continues to function properly in the future.
|
|||||||
},
|
},
|
||||||
"template": "Forward",
|
"template": "Forward",
|
||||||
"cardId": 1498938915662,
|
"cardId": 1498938915662,
|
||||||
"buttons": [1, 2, 3]
|
"buttons": [1, 2, 3],
|
||||||
|
"nextReviews": ["<1m", "<10m", "4d"]
|
||||||
},
|
},
|
||||||
"error": null
|
"error": null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user