Commit b5a61eb0 authored by 王浩's avatar 王浩

fix user search

parent a9f47248
......@@ -21,8 +21,9 @@ class CountrySearchView(APIView):
class UserSearchView(APIView):
def get(self, request):
name = request.GET.get('name')
offset, count = get_offset_count(request)
try:
data = self.rpc['venus/sun/user/search'](name=name).unwrap()
data = self.rpc['venus/sun/user/search'](name=name, offset=offset, count=count).unwrap()
except Exception as e:
raise e
return {
......
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