ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 124220790916672 and this is thread id 124220869264000.
check_same_thread set to True: Ensures SQLite connections are thread-safe, restricting usage to the thread that created them.
check_same_thread set to False: Allows SQLite connections to be shared across threads.
This PR fixes the following error:
check_same_thread set to
True
: Ensures SQLite connections are thread-safe, restricting usage to the thread that created them. check_same_thread set toFalse
: Allows SQLite connections to be shared across threads.