From cd8fe5fed06c6663357f719a087adeb4c80668df Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Wed, 16 Oct 2019 14:33:17 +0200 Subject: [PATCH] commit on querys --- private/lib/sqlitedb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/private/lib/sqlitedb.py b/private/lib/sqlitedb.py index 66bb9f9..d473f57 100644 --- a/private/lib/sqlitedb.py +++ b/private/lib/sqlitedb.py @@ -54,6 +54,7 @@ class SQLitedb: try: self.cursor.execute(qq) self.last_result = self.cursor.fetchall() + self.connection.commit() except sqlite3.Error as e: print("Couldn't execute query %s, exception: %s" % (qq, e), file=stderr) self.last_result = [] @@ -80,6 +81,7 @@ class SQLitedb: try: self.cursor.execute(qq, deliver) self.last_result = self.cursor.fetchall() + self.connection.commit() except sqlite3.Error as e: print("Couldn't execute query %s, exception: %s" % (qq, e), file=stderr) self.last_result = []