Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. params = get_news_params_validator.document
  2.  
  3. keywords = params.get('keywords')
  4. statuses = params.get('status')
  5. sources = params.get('source')
  6. from_time = params.get('from_time')
  7. to_time = params.get('to_time')
  8. offset = params.get('offset')
  9. limit = params.get('limit')
  10.  
  11. query = SearchQuery(
  12. statuses=statuses, sources=sources, text=keywords, from_time=from_time, to_time=to_time)
  13.  
  14. items = await self._news_feed_service.search(query=query, limit=limit, offset=offset)
Add Comment
Please, Sign In to add comment