Commit 3fcc757b authored by yangchenglin's avatar yangchenglin

opt

parent c92473ce
......@@ -91,7 +91,7 @@ class ReplyManageListView(APIView):
topic_content = request.GET.get('topic_content', None)
user_name = request.GET.get('user_name', None)
belong_type = request.GET.get('belong_type', None)
reply_level = request.GET.get('reply_level', None)
reply_level = request.GET.get('reply_level', None) #历史问题 后期优化
reply_user_type = request.GET.get('reply_user_type', None)
replied_user_type = request.GET.get('replied_user_type', None)
is_online = request.GET.get('is_online', None)
......@@ -131,9 +131,7 @@ class ReplyManageListView(APIView):
other_filters = {}
if content:
other_filters['content__contains'] = content.strip()
if reply_level:
other_filters['reply_level'] = reply_level
other_filters['content__contains'] = content.strip()\
try:
data = self.rpc['venus/sun/reply/manage/list'](offset=(page-1) * limit, limit=limit, filters=filters, other_filters=other_filters).unwrap()
......
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