Commit after executemany

This commit is contained in:
shortcutme 2019-11-30 02:10:40 +01:00
parent 99304a09ca
commit 594edc6e9a
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -151,6 +151,8 @@ class DbCursor:
if self.logging or taken_query > 0.1: if self.logging or taken_query > 0.1:
self.db.log.debug("Query: %s x %s (Done in %.4f)" % (query, len(params), taken_query)) self.db.log.debug("Query: %s x %s (Done in %.4f)" % (query, len(params), taken_query))
self.db.need_commit = True
return cursor return cursor
# Creates on updates a database row without incrementing the rowid # Creates on updates a database row without incrementing the rowid