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 (