replace Card._getQA() with the new .answer() and .question()

This commit is contained in:
Mice Pápai 2020-02-16 20:19:48 +01:00
parent cd980ff5e0
commit 59c84b91db

View File

@ -796,8 +796,8 @@ class AnkiConnect:
'cardId': card.id,
'fields': fields,
'fieldOrder': card.ord,
'question': card._getQA()['q'],
'answer': card._getQA()['a'],
'question': card.question(),
'answer': card.answer(),
'modelName': model['name'],
'deckName': self.deckNameFromId(card.did),
'css': model['css'],
@ -1042,8 +1042,8 @@ class AnkiConnect:
'cardId': card.id,
'fields': fields,
'fieldOrder': card.ord,
'question': card._getQA()['q'],
'answer': card._getQA()['a'],
'question': card.question(),
'answer': card.answer(),
'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'],