Commit 1850f446 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'dev'

fix code

See merge request alpha/sun!232
parents c04745b0 34c2c5f9
......@@ -17,6 +17,7 @@ class TopicListView(APIView):
filters = json.loads(request.GET.get('filter', "{}"))
sorts_by = list(map(lambda i: int(i), request.GET.getlist('sort_params[]', [3])))
drop_score = request.GET.get('drop_score', None)
product_id = request.GET.get('product_id', None)
if user_id:
filters.update({'user_id': user_id})
......@@ -40,7 +41,7 @@ class TopicListView(APIView):
try:
data = self.rpc['venus/sun/topic/list'](
topic_ids=topic_ids, pictorial_id=pictorial_id
topic_ids=topic_ids, pictorial_id=pictorial_id, product_id=product_id,
).unwrap()
except Exception as e:
error_logger.error(u'获取帖子列表失败%s', e)
......
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