Commit 294bd453 authored by 张永's avatar 张永

修复分页问题

parent 51a78c86
......@@ -205,7 +205,7 @@ class VersionList(APIView):
:return:
"""
page = int(request.GET.get('page', 1))
offset = int(request.GET.get('offset', 10))
offset = int(request.GET.get('limit', 10))
try:
version_list = self.rpc['venus/sun/channel_build/version/list'](
offset=(page-1)*offset, limit=offset
......
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