From ef39c8c3852c8ecf990fde7c22271dc98b88983d Mon Sep 17 00:00:00 2001 From: flan Date: Mon, 20 Aug 2018 18:41:36 +0200 Subject: [PATCH] Drop unsupported clients if they try to sync a v2 collection --- ankisyncd/sync_app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index 2e443fb..f5a0201 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -82,6 +82,8 @@ class SyncCollectionHandler(anki.sync.Syncer): return Response(status=501) # client needs upgrade if v > SYNC_VER: return {"cont": False, "msg": "Your client is using unsupported sync protocol ({}, supported version: {})".format(v, SYNC_VER)} + if v < 9 and self.col.schedVer() >= 2: + return {"cont": False, "msg": "Your client doesn't support the v{} scheduler.".format(self.col.schedVer())} # Make sure the media database is open! if self.col.media.db is None: