Commit 12485cff authored by Davve's avatar Davve

修改帖子视频保存表

parent 1ccace2d
...@@ -13,7 +13,7 @@ class AccountList(APIView): ...@@ -13,7 +13,7 @@ class AccountList(APIView):
limit = int(request.GET.get('limit', 10)) limit = int(request.GET.get('limit', 10))
filter = self.handle_filter(request.GET.get('filter', "")) filter = self.handle_filter(request.GET.get('filter', ""))
try: try:
data = self.rpc['venus/sun/account/list'](offset=page, limit=limit, filters=filter).unwrap() data = self.rpc['venus/sun/account/list'](offset=(page - 1) * limit, limit=limit, filters=filter).unwrap()
except Exception as e: except Exception as e:
raise e raise e
return data return data
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
username: [{validator: validateRequire}], username: [{validator: validateRequire}],
nick_name: [{validator: validateRequire}], nick_name: [{validator: validateRequire}],
email: [{validator: validateRequire}], email: [{validator: validateRequire}],
password: [{validator: validatePasswordLength}], password: [{validator: validatePasswordLength, trigger: 'blur'}],
phone: [{validator: validateRequire}], phone: [{validator: validateRequire}],
}, },
} }
......
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