aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/db.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/db.py b/python/db.py
index a47c44c6..084a1c44 100644
--- a/python/db.py
+++ b/python/db.py
@@ -27,6 +27,7 @@ def query_db(conn, sqlstr, params=None, one=True):
c.execute(sqlstr, params)
else:
c.execute(sqlstr)
+ conn.commit()
if one:
r = c.fetchone()
c.close()