Commit c6f4b279 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix user search

See merge request alpha/sun!134
parents e6c1e0b0 b5a61eb0
......@@ -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