Browse Source

提交代码,解决权限问题。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 2 years ago
parent
commit
2115b39496
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      routers/repo/ai_model_manage.go

+ 7
- 6
routers/repo/ai_model_manage.go View File

@@ -1050,10 +1050,11 @@ func ShowModelPageInfo(ctx *context.Context) {
Page: page,
PageSize: pageSize,
},
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
Status: -1,
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
IsOnlyThisRepo: true,
Status: -1,
})
if err != nil {
ctx.ServerError("Cloudbrain", err)
@@ -1193,7 +1194,7 @@ func QueryModelListForPredict(ctx *context.Context) {
if pageSize <= 0 {
pageSize = -1
}
IsOnlyThisRepo := ctx.QueryBool("isOnlyThisRepo")
//IsOnlyThisRepo := ctx.QueryBool("isOnlyThisRepo")
modelResult, count, err := models.QueryModel(&models.AiModelQueryOptions{
ListOptions: models.ListOptions{
Page: page,
@@ -1203,7 +1204,7 @@ func QueryModelListForPredict(ctx *context.Context) {
Type: ctx.QueryInt("type"),
New: -1,
Status: 0,
IsOnlyThisRepo: IsOnlyThisRepo,
IsOnlyThisRepo: true,
})
if err != nil {
ctx.ServerError("Cloudbrain", err)


Loading…
Cancel
Save