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

@ -35,7 +35,6 @@ def processRequestLog():
content_db = ContentDbPlugin.content_db
cur = content_db.getCursor()
num = 0
cur.execute("BEGIN")
for site_id in request_log:
for inner_path, uploaded in request_log[site_id].items():
content_db.execute(
@ -43,7 +42,6 @@ def processRequestLog():
{"site_id": site_id, "inner_path": inner_path}
)
num += 1
cur.execute("END")
request_log.clear()