Exemple #1
0
 def _on_stories_callback(response):
     result = _on_response_callback(response, tornado_async)
     return process_stories(
         buckets=result["aggregations"]["stories"]["buckets"],
         callback=tornado_callback,
         type=story_type,
         pending=pending)
Exemple #2
0
 def _on_filters_callback(response):
     results = _on_response_callback(response, tornado_async)
     filters = results["aggregations"]["main_bucket"]["buckets"]
     process_filters(query, filters, pending, error)
     return _on_request_callback(query)