From 5dedeaa89cbfa5d50d448baf4031e85f8d91e17a Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 1 Feb 2018 13:43:16 +0000 Subject: [PATCH] Remove reversed in favour of reverse=True --- app/main/views/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 393f223ab..f12543efd 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -237,7 +237,7 @@ def get_inbox_partials(service_id): messages_to_show[human_readable] = message count_of_users = len(messages_to_show) - messages_to_show = reversed(sorted(messages_to_show.values(), key=lambda x: x['created_at'])) + messages_to_show = sorted(messages_to_show.values(), key=lambda x: x['created_at'], reverse=True) if not inbound_messages: inbound_number = inbound_number_client.get_inbound_sms_number_for_service(service_id)['data']['number']