BEGIN / END no longer necessary as there is no autocommit in new db module

This commit is contained in:
shortcutme 2019-03-16 02:18:53 +01:00
parent a46d8fe7f3
commit 4fe4d0a7e7
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
6 changed files with 0 additions and 37 deletions

View file

@ -77,7 +77,6 @@ class ContentDbPlugin(object):
s = time.time()
site_id = self.site_ids.get(site.address)
cur = self.getCursor()
cur.execute("BEGIN")
try:
cur.execute("DELETE FROM peer WHERE site_id = :site_id", {"site_id": site_id})
cur.cursor.executemany(
@ -86,8 +85,6 @@ class ContentDbPlugin(object):
)
except Exception as err:
site.log.error("Save peer error: %s" % err)
finally:
cur.execute("END")
site.log.debug("Peers saved in %.3fs" % (time.time() - s))
def initSite(self, site):