From 1e50c3c2650f9aaebc2dc00eeff3a045808efdf1 Mon Sep 17 00:00:00 2001 From: David Cooke Date: Fri, 13 Aug 2021 16:27:16 +0100 Subject: [PATCH] make polaris use team ids --- src/andromeda/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/andromeda/views.py b/src/andromeda/views.py index ebbaa124..f47ffb6e 100644 --- a/src/andromeda/views.py +++ b/src/andromeda/views.py @@ -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): @@ -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):