From 72cd5113a8c2eef6874013b8172152a396b1aeb1 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 8 Apr 2021 10:54:46 +0900 Subject: [PATCH] Fix DatasetCatalog API --- app/api/views/upload/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/views/upload/view.py b/app/api/views/upload/view.py index 1fec1596..53950cf3 100644 --- a/app/api/views/upload/view.py +++ b/app/api/views/upload/view.py @@ -16,7 +16,7 @@ class DatasetCatalog(APIView): permission_classes = [IsAuthenticated & IsProjectAdmin] def get(self, request, *args, **kwargs): - project_id = request.query_params['project_id'] + project_id = kwargs['project_id'] project = get_object_or_404(Project, pk=project_id) options = Options.filter_by_task(project.project_type) return Response(data=options, status=status.HTTP_200_OK)