Skip to content

Commit

Permalink
make database accessible from multiple threads
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk committed Oct 8, 2024
1 parent 60b25cc commit 0859a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_neuromodulation/utils/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0859a42

Please sign in to comment.