Commit 7f88fd9f authored by 杨成林's avatar 杨成林

Merge branch 'ycl/topic_finish' into 'test'

add is_finished

See merge request !322
parents b4f8a198 0f4918b4
......@@ -28,6 +28,8 @@ class TopicListView(APIView):
filters.update({'drop_score': int(drop_score)})
elif int(drop_score) == 1:
filters.update({'drop_score__exclude': int(drop_score)})
if filters.get("is_finished") is not None:
filters["is_finished"] = True if filters.get("is_finished") else False
res = self.rpc['physical/search/business/topic'](
offset=(page-1) * limit,
......
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