Skip to content

Commit a3bc425

Browse files
committed
Fix merging error
1 parent 50a5b6b commit a3bc425

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

nxc/database.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ def initialize_db():
107107
if not exists(path_join(WORKSPACE_DIR, "default")):
108108
create_workspace("default")
109109

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+
110113

111114
class BaseDB:
112115
def __init__(self, db_engine):
@@ -142,7 +145,3 @@ def db_execute(self, *args):
142145
res = self.sess.execute(*args)
143146
self.lock.release()
144147
return res
145-
146-
147-
# 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

Comments
 (0)