Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebBell committed Sep 17, 2023
1 parent 4158a9e commit cff8a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chemicals/data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def cached_constant_lookup(CASi, prop):
def init_constants_db():
global CONSTANTS_CURSOR
import sqlite3
conn = sqlite3.connect(path_join(source_path, 'Misc', 'default.sqlite'))
conn = sqlite3.connect(path_join(source_path, 'Misc', 'default.sqlite'), check_same_thread=False)
CONSTANTS_CURSOR = conn.cursor()

def database_constant_lookup(CASi, prop):
Expand Down

0 comments on commit cff8a4a

Please sign in to comment.