[BugFix] Skip checking thread when making sqlite connection (#978)

This commit is contained in:
Deshraj Yadav
2023-11-26 15:44:06 -08:00
committed by GitHub
parent bb28569abf
commit 141a23fb1e
5 changed files with 6 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ CHAT_MESSAGE_CREATE_TABLE_QUERY = """
class ECChatMemory:
def __init__(self) -> None:
with sqlite3.connect(SQLITE_PATH) as self.connection:
with sqlite3.connect(SQLITE_PATH, check_same_thread=False) as self.connection:
self.cursor = self.connection.cursor()
self.cursor.execute(CHAT_MESSAGE_CREATE_TABLE_QUERY)