Merge pull request #35 from techdavid/fix-guicurrentcard

Fix broken guiCurrentCard
This commit is contained in:
Alex Yatskov 2017-08-18 11:55:38 -07:00 committed by GitHub
commit 20cdbae42b

View File

@ -636,7 +636,7 @@ class AnkiBridge:
'fieldOrder': card.ord,
'question': card._getQA()['q'],
'answer': card._getQA()['a'],
'buttons': map(lambda b: b[0], reviewer._answerButtonList()),
'buttons': [b[0] for b in reviewer._answerButtonList()],
'modelName': model['name'],
'deckName': self.deckNameFromId(card.did)
}