Skip to content

Commit

Permalink
removed displayName from daemon config, use name in root config instead
Browse files Browse the repository at this point in the history
  • Loading branch information
visualDust committed Dec 1, 2023
1 parent f02bf92 commit 60163aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion neetbox/config/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"enable": True,
"host": "127.0.0.1",
"port": 20202,
"displayName": None,
"allowIpython": False,
"mute": True,
"mode": "detached",
Expand Down
3 changes: 1 addition & 2 deletions neetbox/daemon/server/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def return_status_of(project_id):
def return_list_of_connected_project_ids():
result = []
for id in __BRIDGES.keys():
result.append({id: __BRIDGES[id].status["workspace-id"]})
result.append({id: json.loads(__BRIDGES[id].status)["config"]})
return result

@app.route(f"{CLIENT_API_ROOT}/sync/<project_id>", methods=["POST"])
Expand Down Expand Up @@ -325,7 +325,6 @@ def __sleep_and_shutdown(secs=1):
"enable": True,
"host": "localhost",
"port": 5000,
"displayName": None,
"allowIpython": False,
"mute": True,
"mode": "detached",
Expand Down
5 changes: 4 additions & 1 deletion neetbox/pipeline/_signal_and_slot.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ def _update_thread():
update_thread.start()


@watch(name="config", initiative=True)
@watch(name="config", initiative=True, _channel=SYSTEM_CHANNEL)
def put_workspace_config_into_watch():
return get_module_level_config("@")


put_workspace_config_into_watch() # put workspace config into http_uploads at once

0 comments on commit 60163aa

Please sign in to comment.