Skip to content

Commit

Permalink
Fix visual-studio-code key value when updating url
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljcollinsuk committed Mar 13, 2024
1 parent 204a0dd commit bca36be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controlpanel/frontend/views/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bca36be

Please sign in to comment.