Merge pull request #53 from cecini/confupdatetx

Improve: put all config item update in one transaction
This commit is contained in:
Vikash Kothary 2020-11-16 19:55:40 +00:00 committed by GitHub
commit a55d1a35ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
##########################################################################