diff options
author | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-20 12:20:17 +0200 |
---|---|---|
committer | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-20 12:20:24 +0200 |
commit | 15321219b05c5eb7f29e45587fcaa3c45e9a9dd7 (patch) | |
tree | 73bdc8c770ac48784e586998bdcb62989c0b29ac /service/pixelated/adapter | |
parent | 6f8012c859021fc88abba8e56756e58d44f334dd (diff) |
Changed search so that you can search without specifying pagination
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/search.py b/service/pixelated/adapter/search.py index ac68849c..71b72dba 100644 --- a/service/pixelated/adapter/search.py +++ b/service/pixelated/adapter/search.py @@ -151,8 +151,8 @@ class SearchEngine(object): return unique([mail['ident'] for mail in results]) def _paginated_search_mails(self, query, window, page): - page = int(page) if int(page) > 1 else 1 - window = int(window) + page = int(page) if page is not None and int(page) > 1 else 1 + window = int(window) if window is not None else 25 with self._index.searcher() as searcher: tags_facet = sorting.FieldFacet('tag', allow_overlap=True, maptype=sorting.Count) |