We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50a5b6b commit a3bc425Copy full SHA for a3bc425
1 file changed
nxc/database.py
@@ -107,6 +107,9 @@ def initialize_db():
107
if not exists(path_join(WORKSPACE_DIR, "default")):
108
create_workspace("default")
109
110
+ # Even if the default workspace exists, we still need to check if every protocol has a database (in case of a new protocol)
111
+ init_protocol_dbs("default")
112
+
113
114
class BaseDB:
115
def __init__(self, db_engine):
@@ -142,7 +145,3 @@ def db_execute(self, *args):
142
145
res = self.sess.execute(*args)
143
146
self.lock.release()
144
147
return res
-
- # Even if the default workspace exists, we still need to check if every protocol has a database (in case of a new protocol)
148
- init_protocol_dbs("default")
0 commit comments