hold off on general release of v2 scheduler for now

The switch to the new timezone code may shift some users back or forth
a day, so it'd be better to have this in place prior to making the
new scheduler the default.
This commit is contained in:
Damien Elmes 2019-12-27 21:14:52 +10:00
parent 683edeeb07
commit 7abd58382f
5 changed files with 24 additions and 5 deletions

View file

@ -62,7 +62,7 @@ defaultConf = {
"sortBackwards": False,
"addToCur": True, # add new to currently selected deck?
"dayLearnFirst": False,
"schedVer": 2,
"schedVer": 1,
}

View file

@ -111,7 +111,7 @@
<item>
<widget class="QCheckBox" name="newSched">
<property name="text">
<string>Anki 2.1 scheduler</string>
<string>Anki 2.1 scheduler (beta)</string>
</property>
</widget>
</item>

View file

@ -8,8 +8,14 @@ from nose2.tools.decorators import with_setup
from anki import Collection as aopen
from anki.exporting import *
from anki.importing import Anki2Importer
from tests.shared import getEmptyCol as getEmptyColOrig
def getEmptyCol():
col = getEmptyColOrig()
col.changeSchedulerVer(2)
return col
from .shared import getEmptyCol
deck = None
ds = None

View file

@ -6,7 +6,14 @@ import time
from anki.consts import STARTING_FACTOR
from anki.hooks import addHook
from anki.utils import intTime
from tests.shared import getEmptyCol
from tests.shared import getEmptyCol as getEmptyColOrig
def getEmptyCol():
col = getEmptyColOrig()
col.changeSchedulerVer(2)
return col
# Between 2-4AM, shift the time back so test assumptions hold.
lt = time.localtime()

View file

@ -3,7 +3,13 @@
import time
from anki.consts import *
from tests.shared import getEmptyCol
from tests.shared import getEmptyCol as getEmptyColOrig
def getEmptyCol():
col = getEmptyColOrig()
col.changeSchedulerVer(2)
return col
def test_op():