disable syncing and deck exports for v2 sched
This commit is contained in:
parent
63d06946a8
commit
7915dcd1d9
@ -263,6 +263,9 @@ class AnkiPackageExporter(AnkiExporter):
|
||||
z.close()
|
||||
|
||||
def doExport(self, z, path):
|
||||
if self.col.schedVer() != 1:
|
||||
raise Exception("Experimental scheduler currently doesn't support deck exports.")
|
||||
|
||||
# export into the anki2 file
|
||||
colfile = path.replace(".apkg", ".anki2")
|
||||
AnkiExporter.exportInto(self, colfile)
|
||||
|
@ -35,6 +35,11 @@ class Syncer:
|
||||
# if the deck has any pending changes, flush them first and bump mod
|
||||
# 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()
|
||||
|
Loading…
Reference in New Issue
Block a user