X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..65d6c08f9187d565fe4b9bfa95ca32f7509429b1:/src/search/mock_search.py?ds=sidebyside diff --git a/src/search/mock_search.py b/src/search/mock_search.py index 253c277a8..b1c8162b9 100644 --- a/src/search/mock_search.py +++ b/src/search/mock_search.py @@ -52,13 +52,13 @@ class Search(Mock): results.append(res) return results - def search_phrase(self, searched, field='text', book=False, - filters=None, snippets=False): + def search_phrase(self, searched, field='text', book=False, filters=None, snippets=False): return self._find_some_books(snippets) def search_some(self, searched, fields, book=True, filters=None, snippets=True, query_terms=None): return self._find_some_books(snippets, query_terms) + # WTF def search_books(self, query, filters=None, max_results=10): return self._find_some_books(snippets, max_results=max_results)