summaryrefslogtreecommitdiff
path: root/service/pixelated/controllers/mails_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/controllers/mails_controller.py')
-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 26b35831..f54fa959 100644
--- a/service/pixelated/controllers/mails_controller.py
+++ b/service/pixelated/controllers/mails_controller.py
@@ -31,7 +31,7 @@ class MailsController:
def mails(self, _request=request):
mail_ids = self._search_engine.search(_request.args.get('q'))
mails = self._mail_service.mails(mail_ids)
- mails = sorted(mails, key=lambda mail: dateparser.parse(mail.get_date()), reverse=True)
+ mails = sorted(mails, key=lambda mail: dateparser.parse(mail.date), reverse=True)
response = {
"stats": {