Spaces:
Runtime error
Runtime error
tianbaoxiexxx
commited on
Commit
•
9a01777
1
Parent(s):
7494e0f
Update nsql/database.py
Browse files- nsql/database.py +1 -1
nsql/database.py
CHANGED
@@ -83,7 +83,7 @@ class NeuralDB(object):
|
|
83 |
os.makedirs(self.tmp_path, exist_ok=True)
|
84 |
# self.db_path = os.path.join(self.tmp_path, '{}.db'.format(hash(time.time())))
|
85 |
self.db_path = os.path.join(self.tmp_path, '{}.db'.format(uuid.uuid4()))
|
86 |
-
self.sqlite_conn = sqlite3.connect(self.db_path)
|
87 |
|
88 |
# Create DB
|
89 |
assert len(tables) >= 1, "DB has no table inside"
|
|
|
83 |
os.makedirs(self.tmp_path, exist_ok=True)
|
84 |
# self.db_path = os.path.join(self.tmp_path, '{}.db'.format(hash(time.time())))
|
85 |
self.db_path = os.path.join(self.tmp_path, '{}.db'.format(uuid.uuid4()))
|
86 |
+
self.sqlite_conn = sqlite3.connect(self.db_path, check_same_thread=False)
|
87 |
|
88 |
# Create DB
|
89 |
assert len(tables) >= 1, "DB has no table inside"
|