示例#1
0
文件: views.py 项目: cuebook/cuelake
 def get(self, request, offset: int):
     limit = request.GET.get('limit', 25)
     searchQuery = request.GET.get('searchText', '')
     sorter = json.loads(request.GET.get('sorter', '{}'))
     _filter = json.loads(request.GET.get('filter', '{}'))
     res = NotebookJobServices.getNotebooks(offset, limit, searchQuery,
                                            sorter, _filter)
     return Response(res.json())
示例#2
0
 def get(self, request, offset: int):
     res = NotebookJobServices.getNotebooks(offset)
     return Response(res.json())