Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- params = get_news_params_validator.document
- keywords = params.get('keywords')
- statuses = params.get('status')
- sources = params.get('source')
- from_time = params.get('from_time')
- to_time = params.get('to_time')
- offset = params.get('offset')
- limit = params.get('limit')
- query = SearchQuery(
- statuses=statuses, sources=sources, text=keywords, from_time=from_time, to_time=to_time)
- items = await self._news_feed_service.search(query=query, limit=limit, offset=offset)
Add Comment
Please, Sign In to add comment