mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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,
|
"sortBackwards": False,
|
||||||
"addToCur": True, # add new to currently selected deck?
|
"addToCur": True, # add new to currently selected deck?
|
||||||
"dayLearnFirst": False,
|
"dayLearnFirst": False,
|
||||||
"schedVer": 2,
|
"schedVer": 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="newSched">
|
<widget class="QCheckBox" name="newSched">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Anki 2.1 scheduler</string>
|
<string>Anki 2.1 scheduler (beta)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -8,8 +8,14 @@ from nose2.tools.decorators import with_setup
|
||||||
from anki import Collection as aopen
|
from anki import Collection as aopen
|
||||||
from anki.exporting import *
|
from anki.exporting import *
|
||||||
from anki.importing import Anki2Importer
|
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
|
deck = None
|
||||||
ds = None
|
ds = None
|
||||||
|
|
|
@ -6,7 +6,14 @@ import time
|
||||||
from anki.consts import STARTING_FACTOR
|
from anki.consts import STARTING_FACTOR
|
||||||
from anki.hooks import addHook
|
from anki.hooks import addHook
|
||||||
from anki.utils import intTime
|
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.
|
# Between 2-4AM, shift the time back so test assumptions hold.
|
||||||
lt = time.localtime()
|
lt = time.localtime()
|
||||||
|
|
|
@ -3,7 +3,13 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from anki.consts import *
|
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():
|
def test_op():
|
||||||
|
|
Loading…
Reference in a new issue