From 428c953cc50057848368482ee646e29fd89e4210 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 17 Apr 2023 21:28:00 +0000 Subject: Commit update/insert queries, since they don't seem to be executed otherwise after the recent changes to the DB --- gn3/db/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn3') diff --git a/gn3/db/__init__.py b/gn3/db/__init__.py index ea800c1..149a344 100644 --- a/gn3/db/__init__.py +++ b/gn3/db/__init__.py @@ -60,6 +60,7 @@ def update(conn: Any, with conn.cursor() as cursor: cursor.execute(sql, tuple(data_.values()) + tuple(where_.values())) + conn.commit() return cursor.rowcount @@ -122,6 +123,7 @@ def insert(conn: Any, sql += ")" with conn.cursor() as cursor: cursor.execute(sql, tuple(dict_.values())) + conn.commit() return cursor.rowcount -- cgit v1.2.3