mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
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:
parent
683edeeb07
commit
7abd58382f
5 changed files with 24 additions and 5 deletions
|
@ -62,7 +62,7 @@ defaultConf = {
|
|||
"sortBackwards": False,
|
||||
"addToCur": True, # add new to currently selected deck?
|
||||
"dayLearnFirst": False,
|
||||
"schedVer": 2,
|
||||
"schedVer": 1,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue