diff --git a/py_neuromodulation/utils/database.py b/py_neuromodulation/utils/database.py index 549470a6..cfc49284 100644 --- a/py_neuromodulation/utils/database.py +++ b/py_neuromodulation/utils/database.py @@ -41,7 +41,7 @@ def __init__( self.csv_path.parent.mkdir(parents=True, exist_ok=True) - self.conn = sqlite3.connect(self.db_path) + self.conn = sqlite3.connect(self.db_path, check_same_thread=False) self.cursor = self.conn.cursor() # Database config and optimization, prioritize data integrity