Save changes before closing cursor and connection

This commit is contained in:
CravateRouge 2022-04-06 21:12:40 +02:00 committed by GitHub
parent 0408f98359
commit 1a62135ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,7 @@ class HashDB(object):
threadData = getCurrentThreadData()
try:
if threadData.hashDBCursor:
threadData.hashDBCursor.connection.commit()
threadData.hashDBCursor.close()
threadData.hashDBCursor.connection.close()
threadData.hashDBCursor = None