commit on querys
This commit is contained in:
parent
0718de20fb
commit
cd8fe5fed0
1 changed files with 2 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue