Browse Source

Fix DatasetCatalog API

pull/1310/head
Hironsan 3 years ago
parent
commit
72cd5113a8
1 changed files with 1 additions and 1 deletions
  1. 2
      app/api/views/upload/view.py

2
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)

Loading…
Cancel
Save