mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
autocommit
This commit is contained in:
parent
b38c93c399
commit
df140feb52
@ -10,13 +10,11 @@ class UserStore(UserStoreModule, sqlite_db):
|
||||
def __init__(self):
|
||||
self.data_dir = cfg.users_dir
|
||||
self.db_file = cfg.user_db
|
||||
sqlite_db.__init__(self, self.db_file)
|
||||
sqlite_db.__init__(self, self.db_file, autocommit=True)
|
||||
self.__enter__()
|
||||
def close(self):
|
||||
self.__exit__()
|
||||
|
||||
#TODO: at exit, commit db
|
||||
|
||||
class UserStoreOld():
|
||||
#class UserStore(UserStoreModule):
|
||||
"""The user storage is on disk. Rather than slurp the entire
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user