Browse Source

Update search api

pull/10/head
Hironsan 6 years ago
parent
commit
6d38ea595e
1 changed files with 1 additions and 1 deletions
  1. 2
      app/server/views.py

2
app/server/views.py

@ -160,7 +160,7 @@ class ProjectDocsAPI(generics.ListCreateAPIView):
return queryset
project = get_object_or_404(Project, pk=project_id)
isnull = self.request.query_params.get('is_checked') != 'true'
isnull = self.request.query_params.get('is_checked') == 'true'
if project.is_type_of(Project.DOCUMENT_CLASSIFICATION):
queryset = queryset.filter(doc_annotations__isnull=isnull).distinct()
elif project.is_type_of(Project.SEQUENCE_LABELING):

Loading…
Cancel
Save