Commit 687e75ed authored by 王浩's avatar 王浩

fix

parent fcc79ef7
...@@ -13,7 +13,7 @@ class TopicListView(APIView): ...@@ -13,7 +13,7 @@ class TopicListView(APIView):
pictorial_id = request.GET.get('pictorial_id', '') pictorial_id = request.GET.get('pictorial_id', '')
user_id = request.GET.get('user_id', '') user_id = request.GET.get('user_id', '')
page = int(request.GET.get('page', 1)) page = int(request.GET.get('page', 1))
limit = int(request.GET.get('limit', 10)) limit = int(request.GET.get('size', 10))
filters = json.loads(request.GET.get('filter', "{}")) filters = json.loads(request.GET.get('filter', "{}"))
sorts_by = list(map(lambda i: int(i), request.GET.getlist('sort_params[]', [3]))) sorts_by = list(map(lambda i: int(i), request.GET.getlist('sort_params[]', [3])))
if user_id: if user_id:
......
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