Disable same thread check for database
This commit is contained in:
parent
463f2f3a8b
commit
858ba7bc2c
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue