Skip to content

Commit

Permalink
Merge pull request #178 from ractf/hotfix/andromeda-id
Browse files Browse the repository at this point in the history
make polaris use team ids
  • Loading branch information
david-cooke authored Aug 13, 2021
2 parents d45c8ce + 1e50c3c commit fb98374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/andromeda/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GetInstanceView(APIView):
def get(self, request, job_id):
if not config.get("enable_challenge_server"):
return FormattedResponse(m="challenge_server_disabled", status=HTTP_403_FORBIDDEN)
return FormattedResponse(client.get_instance(request.user.id, job_id))
return FormattedResponse(client.get_instance(request.user.team.id, job_id))


class ResetInstanceView(APIView):
Expand All @@ -27,7 +27,7 @@ class ResetInstanceView(APIView):
def get(self, request, job_id):
if not config.get("enable_challenge_server"):
return FormattedResponse(m="challenge_server_disabled", status=HTTP_403_FORBIDDEN)
return FormattedResponse(client.request_reset(request.user.id, job_id))
return FormattedResponse(client.request_reset(request.user.team.id, job_id))


class ListJobsView(APIView):
Expand Down

0 comments on commit fb98374

Please sign in to comment.