ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 140736341201856 and this is thread id 123145515716608.
解决方法:
self.connection = sqlite3.connect(self.database, timeout=3, isolation_level=None,check_same_thread=False)
设置同线程判断为false check_same_thread=False