mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Enable multithread for UserStore DB.
This commit is contained in:
parent
ec9a457e3e
commit
5be8a552ab
@ -10,7 +10,7 @@ class UserStore(UserStoreModule, sqlite_db):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.data_dir = cfg.users_dir
|
self.data_dir = cfg.users_dir
|
||||||
self.db_file = cfg.user_db
|
self.db_file = cfg.user_db
|
||||||
sqlite_db.__init__(self, self.db_file, autocommit=True)
|
sqlite_db.__init__(self, self.db_file, autocommit=True, check_same_thread=False)
|
||||||
self.__enter__()
|
self.__enter__()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user