From bca36bef8d1aea6e7498a6b1e4d62b35cb54f19b Mon Sep 17 00:00:00 2001 From: Michael Collins <15347726+michaeljcollinsuk@users.noreply.github.com> Date: Wed, 13 Mar 2024 09:42:40 +0000 Subject: [PATCH] Fix visual-studio-code key value when updating url --- controlpanel/frontend/views/tool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controlpanel/frontend/views/tool.py b/controlpanel/frontend/views/tool.py index ef377b611..396d98cdc 100644 --- a/controlpanel/frontend/views/tool.py +++ b/controlpanel/frontend/views/tool.py @@ -245,9 +245,9 @@ def get_context_data(self, *args, **kwargs): tools_info = self._retrieve_detail_tool_info( user, context["tools"], charts_info ) - if 'vscode' in tools_info: - url = tools_info['vscode']['url'] - tools_info['vscode']['url'] = f"{url}/?folder=/home/analyticalplatform/workspace" + if 'visual-studio-code' in tools_info: + url = tools_info['visual-studio-code']['url'] + tools_info['visual-studio-code']['url'] = f"{url}?folder=/home/analyticalplatform/workspace" self._add_deployed_charts_info(tools_info, user, id_token, charts_info) context["tools_info"] = tools_info