From 858ba7bc2c75d5283e4deb53e137c4894d21b9f6 Mon Sep 17 00:00:00 2001 From: sqozz Date: Wed, 13 Jul 2022 09:10:05 +0200 Subject: [PATCH] Disable same thread check for database --- history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/history.py b/history.py index b051d94..406a333 100644 --- a/history.py +++ b/history.py @@ -2,7 +2,7 @@ import sqlite3, time class History(): def __init__(self): - self.__db = sqlite3.connect('history.sqlite') + self.__db = sqlite3.connect('history.sqlite', check_same_thread=False) self.__c = self.__db.cursor() self.__c.execute(""" CREATE TABLE IF NOT EXISTS numbers (