Skip to content

Commit

Permalink
Fix and enable shared workspaces unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc committed Jan 3, 2024
1 parent 7335dcb commit dc5d418
Show file tree
Hide file tree
Showing 2 changed files with 431 additions and 116 deletions.
4 changes: 3 additions & 1 deletion server/portal/apps/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ def get(self, request, project_id=None, system_id=None):
:param str project_id: Project Id.
:param str system_id: System Id.
"""
project_id = system_id.split(f"{settings.PORTAL_PROJECTS_SYSTEM_PREFIX}.")[1]
if system_id is not None:
project_id = system_id.split(f"{settings.PORTAL_PROJECTS_SYSTEM_PREFIX}.")[1]

prj = get_project(request.user.tapis_oauth.client, project_id)

return JsonResponse(
Expand Down
Loading

0 comments on commit dc5d418

Please sign in to comment.