mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05:00
queue argument is obsolete
This commit is contained in:
parent
5a3d65ac61
commit
594204a134
1 changed files with 1 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ from anki.collection import _Collection
|
||||||
from anki.consts import *
|
from anki.consts import *
|
||||||
from anki.stdmodels import addBasicModel, addClozeModel
|
from anki.stdmodels import addBasicModel, addClozeModel
|
||||||
|
|
||||||
def Collection(path, queue=True, lock=True, server=False):
|
def Collection(path, lock=True, server=False):
|
||||||
"Open a new or existing collection. Path must be unicode."
|
"Open a new or existing collection. Path must be unicode."
|
||||||
assert path.endswith(".anki2")
|
assert path.endswith(".anki2")
|
||||||
path = os.path.abspath(path)
|
path = os.path.abspath(path)
|
||||||
|
|
@ -39,8 +39,6 @@ def Collection(path, queue=True, lock=True, server=False):
|
||||||
col.save()
|
col.save()
|
||||||
if lock:
|
if lock:
|
||||||
col.lock()
|
col.lock()
|
||||||
if not queue:
|
|
||||||
return col
|
|
||||||
return col
|
return col
|
||||||
|
|
||||||
# no upgrades necessary at the moment
|
# no upgrades necessary at the moment
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue