Remove unused lines from dbCursor

This commit is contained in:
shortcutme 2018-10-15 13:01:44 +02:00
parent f275ba36a1
commit 1fc364fa07
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -65,7 +65,6 @@ class DbCursor:
s = time.time()
# if query == "COMMIT": self.logging = True # Turn logging back on transaction commit
if params: # Query has parameters
res = self.cursor.execute(query, params)
@ -83,7 +82,6 @@ class DbCursor:
self.db.query_stats[query]["call"] += 1
self.db.query_stats[query]["time"] += time.time() - s
# if query == "BEGIN": self.logging = False # Turn logging off on transaction commit
return res
# Creates on updates a database row without incrementing the rowid