def FilterAndSortCandidates( request_data ): _logger.info( 'Received filter & sort request' ) # Not using RequestWrap because no need and the requests coming in aren't like # the usual requests we handle. return FilterAndSortCandidatesWrap( request_data[ 'candidates'], request_data[ 'sort_property' ], request_data[ 'query' ] )
def FilterAndSortCandidates(): # Not using RequestWrap because no need and the requests coming in aren't like # the usual requests we handle. request_data = request.json return _JsonResponse( FilterAndSortCandidatesWrap( request_data['candidates'], request_data['sort_property'], request_data['query'], _server_state.user_options['max_num_candidates']))