예제 #1
0
def getEmptyCol():
    col = getEmptyColOrig()
    col.upgrade_to_v2_scheduler()
    if is_2021():
        col.set_v3_scheduler(True)
    return col
예제 #2
0
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