mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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.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."
|
||||
assert path.endswith(".anki2")
|
||||
path = os.path.abspath(path)
|
||||
|
@ -39,8 +39,6 @@ def Collection(path, queue=True, lock=True, server=False):
|
|||
col.save()
|
||||
if lock:
|
||||
col.lock()
|
||||
if not queue:
|
||||
return col
|
||||
return col
|
||||
|
||||
# no upgrades necessary at the moment
|
||||
|
|
Loading…
Reference in a new issue