Hansimov commited on
Commit
876e441
1 Parent(s): c7c538d

:boom: [Fix] Duplicated query_results in response JSON when passing multiple queries

Browse files
Files changed (1) hide show
  1. apis/search_api.py +1 -1
apis/search_api.py CHANGED
@@ -58,9 +58,9 @@ class SearchAPIApp:
58
 
59
  def queries_to_search_results(self, item: QueriesToSearchResultsPostItem):
60
  google_searcher = GoogleSearcher()
61
- query_results_extractor = QueryResultsExtractor()
62
  queries_search_results = []
63
  for query in item.queries:
 
64
  if not query.strip():
65
  continue
66
  query_html_path = google_searcher.search(
 
58
 
59
  def queries_to_search_results(self, item: QueriesToSearchResultsPostItem):
60
  google_searcher = GoogleSearcher()
 
61
  queries_search_results = []
62
  for query in item.queries:
63
+ query_results_extractor = QueryResultsExtractor()
64
  if not query.strip():
65
  continue
66
  query_html_path = google_searcher.search(