WIP
This commit is contained in:
parent
60f85a962c
commit
718287360e
@ -33,15 +33,15 @@ class AnkiConnect:
|
|||||||
self.timer.start(interval)
|
self.timer.start(interval)
|
||||||
|
|
||||||
self.handlers = {
|
self.handlers = {
|
||||||
'addNote': self.apiAddNote,
|
'addNote': self.apiAddNote,
|
||||||
'apiCanAddNote': self.apiCanAddNote,
|
'canAddNote': self.apiCanAddNote,
|
||||||
'apiCanAddNotes': self.apiCanAddNotes,
|
'canAddNotes': self.apiCanAddNotes,
|
||||||
'getVersion': self.apiGetVersion,
|
'getVersion': self.apiGetVersion,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def advance(self):
|
def advance(self):
|
||||||
enabled = self.preferences['enableRemoteApi']
|
enabled = self.preferences['enableAnkiConnect']
|
||||||
|
|
||||||
if self.server is None and enabled:
|
if self.server is None and enabled:
|
||||||
self.server = AjaxServer(self.handler)
|
self.server = AjaxServer(self.handler)
|
||||||
|
Loading…
Reference in New Issue
Block a user