From af7ad31182a471f40681b6e6cfdb43f4e64db767 Mon Sep 17 00:00:00 2001 From: Mathieu Deous Date: Sat, 14 Dec 2013 15:58:09 +0100 Subject: [PATCH] fix commit method usage (belongs to connection, not cursor) --- lib/utils/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/api.py b/lib/utils/api.py index 61a15b5ba..c8171d482 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -87,7 +87,7 @@ class Database(object): self.connection.close() def commit(self): - self.cursor.commit() + self.connection.commit() def execute(self, statement, arguments=None): if arguments: