Commit ad085e49 authored by yangchenglin's avatar yangchenglin

fix

parent 8ff1f7b7
......@@ -95,10 +95,10 @@ class UserUpdateOrCreate(APIView):
class PictorialUserList(APIView):
def get(self, request):
id_ = request.GET.get('id')
id_ = request.GET.get('pictorial_id')
offset = int(request.GET.get('page', 0))
count = int(request.GET.get('limit', 10))
filters = {'pictorial_id': id_}
filters = {'pictorial_id': id_, 'is_online': True}
try:
data = self.rpc['venus/sun/pictorial/user/list'](filters=filters, offset=(offset - 1) * count, count=count).unwrap()
except Exception as 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