Add template to getCurrentCard output + increment API_VERSION
This commit is contained in:
parent
4cef534271
commit
c32cf1eb7a
@ -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']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user