From b9c005ec3ff137b33ec7271894abebeab79600d0 Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Mon, 3 Aug 2015 00:35:21 +0300 Subject: [PATCH] reversed msg order --- SE_API/MessageRoutes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SE_API/MessageRoutes.py b/SE_API/MessageRoutes.py index 31d7d4f..486a1f3 100644 --- a/SE_API/MessageRoutes.py +++ b/SE_API/MessageRoutes.py @@ -176,7 +176,7 @@ def getMessagesByGroup(token, groupId): msgDic['forSortDate'] = msgTime arr.append(msgDic) print arr - arr = sorted(arr, key=itemgetter('forSortDate'), reverse=True) + arr = sorted(arr, key=itemgetter('forSortDate'), reverse=False) for i in arr: del i['forSortDate'] print arr @@ -270,7 +270,7 @@ def getAllUserMessages(token): msgDic['forSortDate'] = msgTime arr.append(msgDic) - arr = sorted(arr, key=itemgetter('forSortDate'), reverse=True) + arr = sorted(arr, key=itemgetter('forSortDate'), reverse=False) for i in arr: del i['forSortDate'] print arr