Fix broken guiCurrentCard

A map can't be converted to JSON
This commit is contained in:
David Bailey 2017-08-18 16:15:08 +01:00
parent 6399da13e7
commit 81d49c3cd8

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)
}