Commit 2416b4b6 authored by zhanglu's avatar zhanglu

Merge branch 'feature/searth_topic' into 'master'

帖子添加时间排序

See merge request alpha/physical!93
parents bf09f5e1 b7bd6186
...@@ -506,8 +506,7 @@ class TopicUtils(object): ...@@ -506,8 +506,7 @@ class TopicUtils(object):
"""处理排序部分。""" """处理排序部分。"""
sort_rule = [] sort_rule = []
for sort in sorts_by: if sorts_by == TOPIC_SEARCH_SORT.VOTE_NUM:
if sort == TOPIC_SEARCH_SORT.VOTE_NUM:
sort_rule.append({ sort_rule.append({
"vote_num":{ "vote_num":{
"order":"desc" "order":"desc"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment