diff options
-rw-r--r-- | service/pixelated/adapter/search.py | 4 | ||||
-rw-r--r-- | service/test/unit/adapter/mail_test.py | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/service/pixelated/adapter/search.py b/service/pixelated/adapter/search.py index cfb5aaa0..a5b31c67 100644 --- a/service/pixelated/adapter/search.py +++ b/service/pixelated/adapter/search.py @@ -124,7 +124,6 @@ class SearchEngine(object): else: return self._paginated_search_mails(query, window, page) - def _search_all_mails(self, query): with self._index.searcher() as searcher: results = searcher.search(query, limit=None) @@ -138,7 +137,6 @@ class SearchEngine(object): results = searcher.search_page(query, page, pagelen=window) return [mail['ident'] for mail in results] - def prepare_query(self, query): query = ( query @@ -147,8 +145,6 @@ class SearchEngine(object): .replace('in:all', '*') ) return QueryParser('raw', self._index.schema).parse(query) - - def remove_from_index(self, mail_id): writer = self._index.writer() diff --git a/service/test/unit/adapter/mail_test.py b/service/test/unit/adapter/mail_test.py index 94578a05..b4e19017 100644 --- a/service/test/unit/adapter/mail_test.py +++ b/service/test/unit/adapter/mail_test.py @@ -87,8 +87,8 @@ class TestPixelatedMail(unittest.TestCase): 'mailbox': 'inbox', 'security_casing': {}, 'status': ['recent'], - 'tags': []} - ) + 'tags': [] + }) class InputMailTest(unittest.TestCase): |