Skip to content

Commit af7ad31

Browse files
committed
fix commit method usage (belongs to connection, not cursor)
1 parent c5a3f54 commit af7ad31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def disconnect(self):
8787
self.connection.close()
8888

8989
def commit(self):
90-
self.cursor.commit()
90+
self.connection.commit()
9191

9292
def execute(self, statement, arguments=None):
9393
if arguments:

0 commit comments

Comments
 (0)