Merge pull request #53 from cecini/confupdatetx
Improve: put all config item update in one transaction
This commit is contained in:
commit
a55d1a35ee
@ -301,9 +301,7 @@ from notes where %s""" % lim, self.maxUsn)
|
||||
return self.col.conf
|
||||
|
||||
def mergeConf(self, conf):
|
||||
newConf = ConfigManager(self.col)
|
||||
for key, value in conf.items():
|
||||
self.col.set_config(key, value)
|
||||
self.col.backend.set_all_config(json.dumps(conf).encode())
|
||||
|
||||
# Wrapper for requests that tracks upload/download progress
|
||||
##########################################################################
|
||||
|
||||
Loading…
Reference in New Issue
Block a user