summaryrefslogtreecommitdiff
path: root/service/pixelated/controllers
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@thoughtworks.com>2014-10-16 11:53:56 +0200
committerBruno Wagner <bwagner@thoughtworks.com>2014-10-16 11:53:56 +0200
commiteacd5fd5f7f47791ddc2e5568b8e4622420d8562 (patch)
treef303e7593c8eec8cc626b0df489b7e81128ca6dd /service/pixelated/controllers
parent693957054255b1807ae9c09478a06e191114b7fb (diff)
#96 Mail searches are now paginated, the pages number start at 1 now
Diffstat (limited to 'service/pixelated/controllers')
-rw-r--r--service/pixelated/controllers/mails_controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/controllers/mails_controller.py b/service/pixelated/controllers/mails_controller.py
index 6765fc78..6bd2fe99 100644
--- a/service/pixelated/controllers/mails_controller.py
+++ b/service/pixelated/controllers/mails_controller.py
@@ -29,7 +29,7 @@ class MailsController:
self._search_engine = search_engine
def mails(self, _request=request):
- mail_ids = self._search_engine.search(_request.args.get('q'))
+ mail_ids = self._search_engine.search(_request.args.get('q'), _request.args.get('w'), _request.args.get('p'))
mails = self._mail_service.mails(mail_ids)
mails = sorted(mails, key=lambda mail: dateparser.parse(mail.date), reverse=True)