drop log= argument from Collection
This commit is contained in:
parent
818401e464
commit
6db4418f05
@ -83,10 +83,9 @@ class _Collection:
|
||||
db: DBProxy,
|
||||
backend: RustBackend,
|
||||
server: Optional["anki.storage.ServerData"] = None,
|
||||
log: bool = False,
|
||||
) -> None:
|
||||
self.backend = backend
|
||||
self._debugLog = log
|
||||
self._debugLog = not server
|
||||
self.db = db
|
||||
self.path = db._path
|
||||
self._openLog()
|
||||
|
@ -459,7 +459,7 @@ close the profile or restart Anki."""
|
||||
def _loadCollection(self) -> bool:
|
||||
cpath = self.pm.collectionPath()
|
||||
|
||||
self.col = Collection(cpath, log=True)
|
||||
self.col = Collection(cpath)
|
||||
|
||||
self.setEnabled(True)
|
||||
self.progress.setupDB(self.col.db)
|
||||
|
@ -364,7 +364,7 @@ class SyncThread(QThread):
|
||||
self.syncMsg = ""
|
||||
self.uname = ""
|
||||
try:
|
||||
self.col = Collection(self.path, log=True)
|
||||
self.col = Collection(self.path)
|
||||
except:
|
||||
self.fireEvent("corrupt")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user