mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
add finish() command to sync protocol
This commit is contained in:
parent
0af8da9cb8
commit
4c8f2d3b47
1 changed files with 3 additions and 0 deletions
|
@ -1130,6 +1130,9 @@ class HttpSyncServerProxy(SyncServer):
|
|||
return self.runCmd("applyPayload",
|
||||
payload=self.stuff(payload))
|
||||
|
||||
def finish(self):
|
||||
assert self.runCmd("finish") == "OK"
|
||||
|
||||
def runCmd(self, action, **args):
|
||||
data = {"p": self.password,
|
||||
"u": self.username,
|
||||
|
|
Loading…
Reference in a new issue