@ -1131,7 +1131,7 @@ class TaskViewSet(viewsets.GenericViewSet, mixins.ListModelMixin,
get_data = dm . task . get_task_data ,
)
else :
return Response ( data = " Exporting a task without data is not allowed" ,
return Response ( data = " Exporting a nnotations from a task without data is not allowed" ,
status = status . HTTP_400_BAD_REQUEST )
elif request . method == ' POST ' or request . method == ' OPTIONS ' :
return self . import_annotations (
@ -1311,7 +1311,7 @@ class TaskViewSet(viewsets.GenericViewSet, mixins.ListModelMixin,
export_func = _export_annotations ,
callback = dm . views . export_task_as_dataset )
else :
return Response ( data = " Exporting a task without data is not allowed" ,
return Response ( data = " Exporting a dataset from a task without data is not allowed" ,
status = status . HTTP_400_BAD_REQUEST )
@extend_schema ( tags = [ ' jobs ' ] )