Add template to getCurrentCard output + increment API_VERSION

This commit is contained in:
Charles Henry 2018-05-18 13:46:33 +01:00
parent 4cef534271
commit c32cf1eb7a

View File

@ -37,7 +37,7 @@ from unicodedata import normalize
# Constants # Constants
# #
API_VERSION = 5 API_VERSION = 6
NET_ADDRESS = os.getenv('ANKICONNECT_BIND_ADDRESS', '127.0.0.1') NET_ADDRESS = os.getenv('ANKICONNECT_BIND_ADDRESS', '127.0.0.1')
NET_BACKLOG = 5 NET_BACKLOG = 5
NET_PORT = 8765 NET_PORT = 8765
@ -1000,7 +1000,8 @@ class AnkiConnect:
'buttons': [b[0] for b in reviewer._answerButtonList()], 'buttons': [b[0] for b in reviewer._answerButtonList()],
'modelName': model['name'], 'modelName': model['name'],
'deckName': self.deckNameFromId(card.did), 'deckName': self.deckNameFromId(card.did),
'css': model['css'] 'css': model['css'],
'template': card.template()['name']
} }