コード例 #1
0
def getEmptyCol():
    col = getEmptyColOrig()
    col.upgrade_to_v2_scheduler()
    if is_2021():
        col.set_v3_scheduler(True)
    return col
コード例 #2
0
ファイル: test_schedv2.py プロジェクト: shaunren/anki
def getEmptyCol():
    col = getEmptyColOrig()
    col.upgrade_to_v2_scheduler()
    if is_2021():
        col.set_2021_test_scheduler_enabled(True)
    return col
コード例 #3
0
def getEmptyCol():
    col = getEmptyColOrig()
    col.changeSchedulerVer(2)
    return col
コード例 #4
0
def getEmptyCol() -> Collection:
    col = getEmptyColOrig()
    # only safe in test environment
    col.set_config("schedVer", 1)
    col._load_scheduler()
    return col
コード例 #5
0
def getEmptyCol():
    col = getEmptyColOrig()
    col.upgrade_to_v2_scheduler()
    return col
コード例 #6
0
ファイル: test_schedv1.py プロジェクト: yycmmc/anki
def getEmptyCol():
    col = getEmptyColOrig()
    # only safe in test environment
    col.set_config("schedVer", 1)
    return col