diff options
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) |