mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-24 22:05:05 +00:00
Merge branch 'feature/changePy313Deprecations' into dev
This commit is contained in:
commit
9ca8f86797
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ class DBConnection(object):
|
||||||
helpers.copy_file(db_alt, db_src)
|
helpers.copy_file(db_alt, db_src)
|
||||||
|
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.connection = sqlite3.connect(db_src, 20)
|
self.connection = sqlite3.connect(db_src, timeout=20)
|
||||||
|
|
||||||
if 'dict' == row_type:
|
if 'dict' == row_type:
|
||||||
self.connection.row_factory = self._dict_factory
|
self.connection.row_factory = self._dict_factory
|
||||||
|
@ -150,7 +150,7 @@ class DBConnection(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# copy into this DB
|
# copy into this DB
|
||||||
backup_con = sqlite3.connect(target_db, 20)
|
backup_con = sqlite3.connect(target_db, timeout=20)
|
||||||
with backup_con:
|
with backup_con:
|
||||||
with db_lock:
|
with db_lock:
|
||||||
self.connection.backup(backup_con, progress=progress)
|
self.connection.backup(backup_con, progress=progress)
|
||||||
|
|
Loading…
Reference in a new issue