Browse Source

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

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.1^2
zouap 3 years ago
parent
commit
5faf526b03
2 changed files with 15 additions and 12 deletions
  1. +5
    -4
      routers/repo/ai_model_manage.go
  2. +10
    -8
      routers/repo/modelarts.go

+ 5
- 4
routers/repo/ai_model_manage.go View File

@@ -963,10 +963,11 @@ func SetModelCount(ctx *context.Context) {
Page: 1,
PageSize: 2,
},
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
Status: -1,
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
IsOnlyThisRepo: true,
Status: -1,
})
ctx.Data["MODEL_COUNT"] = count
}


+ 10
- 8
routers/repo/modelarts.go View File

@@ -2345,10 +2345,11 @@ func InferenceJobIndex(ctx *context.Context) {
Page: 1,
PageSize: 2,
},
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
Status: 0,
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
IsOnlyThisRepo: true,
Status: 0,
})
ctx.Data["MODEL_COUNT"] = model_count

@@ -2425,10 +2426,11 @@ func inferenceJobNewDataPrepare(ctx *context.Context) error {
Page: 1,
PageSize: 2,
},
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
Status: 0,
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
IsOnlyThisRepo: true,
Status: 0,
})
ctx.Data["MODEL_COUNT"] = model_count
ctx.Data["datasetType"] = models.TypeCloudBrainTwo


Loading…
Cancel
Save