Add docker support for tank2.0.0

This commit is contained in:
zicla
2019-01-08 01:39:57 +08:00
parent 70b5c10865
commit 22a85eb7d4
5 changed files with 14 additions and 71 deletions

View File

@ -286,10 +286,6 @@ func (this *InstallController) AdminList(writer http.ResponseWriter, request *ht
wp = wp.And(&WherePair{Query: "role = ?", Args: []interface{}{USER_ROLE_ADMINISTRATOR}})
count := 0
db = db.Model(&User{}).Where(wp.Query, wp.Args...).Count(&count)
this.PanicError(db.Error)
var users []*User
db = db.Where(wp.Query, wp.Args...).Offset(0).Limit(10).Find(&users)