X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/63f861861578b33416a0b2d801252b27443fabde..fa8ae232e2fb6480e1f99bdb8393eaf682c0d2d1:/src/search/mock_search.py diff --git a/src/search/mock_search.py b/src/search/mock_search.py index 3bd7b9371..344e79f72 100644 --- a/src/search/mock_search.py +++ b/src/search/mock_search.py @@ -36,15 +36,6 @@ class Search(Mock): results.append(res) return results - # WTF - def search_books(self, query, filters=None, max_results=10): - return self._find_some_books(max_results=max_results) - def search_everywhere(self, searched, query_terms=None): return [] - def hint_tags(self, query, pdcounter=True, prefix=True): - return Tag.objects.exclude(category='set').order_by('?')[:randint(1, 10)] - - def hint_books(self, prefix): - return Book.objects.order_by('?')[:randint(1, 10)]