From 2bfccf7fa4af87545f009729ff6e84934c6fde0b Mon Sep 17 00:00:00 2001 From: gzz Date: Fri, 17 Jan 2020 16:30:43 +0800 Subject: [PATCH] offset param --- ankisyncd/sync_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index 5972335..f3db8be 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -110,7 +110,9 @@ class SyncCollectionHandler(anki.sync.Syncer): # ankidesktop >=2.1rc2 sends graves in applyGraves, but still expects # server-side deletions to be returned by start - def start(self, minUsn, lnewer, graves={"cards": [], "notes": [], "decks": []}): + def start(self, minUsn, lnewer, graves={"cards": [], "notes": [], "decks": []}, offset=None): + if offset is not None: + raise NotImplementedError('You are using the experimental V2 scheduler, which is not supported by the server.') self.maxUsn = self.col._usn self.minUsn = minUsn self.lnewer = not lnewer