Skip to content

Commit

Permalink
Fix sqlite connection for multithreading
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Oct 25, 2024
1 parent 1ffcd28 commit cf0d563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npc_lims/metadata/targeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_probe_target_db() -> sqlite3.Connection:
db_path = upath.UPath(tempfile.mkstemp(suffix=".db")[1])

db_path.write_bytes(S3_PROBE_TARGET_DB_PATH.read_bytes())
con = sqlite3.connect(db_path)
con = sqlite3.connect(db_path, check_same_thread=False)

def dict_factory(cursor, row):
d = {}
Expand Down

0 comments on commit cf0d563

Please sign in to comment.