reversed msg order
This commit is contained in:
parent
1b3e4b74b9
commit
b9c005ec3f
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ def getMessagesByGroup(token, groupId):
|
||||||
msgDic['forSortDate'] = msgTime
|
msgDic['forSortDate'] = msgTime
|
||||||
arr.append(msgDic)
|
arr.append(msgDic)
|
||||||
print arr
|
print arr
|
||||||
arr = sorted(arr, key=itemgetter('forSortDate'), reverse=True)
|
arr = sorted(arr, key=itemgetter('forSortDate'), reverse=False)
|
||||||
for i in arr:
|
for i in arr:
|
||||||
del i['forSortDate']
|
del i['forSortDate']
|
||||||
print arr
|
print arr
|
||||||
|
@ -270,7 +270,7 @@ def getAllUserMessages(token):
|
||||||
msgDic['forSortDate'] = msgTime
|
msgDic['forSortDate'] = msgTime
|
||||||
arr.append(msgDic)
|
arr.append(msgDic)
|
||||||
|
|
||||||
arr = sorted(arr, key=itemgetter('forSortDate'), reverse=True)
|
arr = sorted(arr, key=itemgetter('forSortDate'), reverse=False)
|
||||||
for i in arr:
|
for i in arr:
|
||||||
del i['forSortDate']
|
del i['forSortDate']
|
||||||
print arr
|
print arr
|
||||||
|
|
Loading…
Reference in a new issue