From bbccc4fd6be1d13eea515cb809b2050966aefccb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 30 Jan 2018 17:52:03 +1000 Subject: [PATCH] enable syncing w/ v2 scheduler, and bump sync version any client using a sync version of 9 must be able to handle the V2 scheduler --- anki/consts.py | 2 +- anki/sync.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/anki/consts.py b/anki/consts.py index b0e0a90ea..f77ef872f 100644 --- a/anki/consts.py +++ b/anki/consts.py @@ -52,7 +52,7 @@ SYNC_ZIP_SIZE = int(2.5*1024*1024) SYNC_ZIP_COUNT = 25 SYNC_BASE = "https://sync.ankiweb.net/" SYNC_MEDIA_BASE = "https://sync.ankiweb.net/msync/" -SYNC_VER = 8 +SYNC_VER = 9 HELP_SITE="http://ankisrs.net/docs/manual.html" diff --git a/anki/sync.py b/anki/sync.py index 35dfa469b..2f5dfaa34 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -36,10 +36,6 @@ class Syncer: # time self.col.save() - if self.col.schedVer() != 1: - self.syncMsg = "Experimental scheduler currently doesn't support syncing." - return "serverAbort" - # step 1: login & metadata runHook("sync", "login") meta = self.server.meta()