Browse Source

增加属性给予

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
4ad1e8957e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      routers/repo/aisafety.go

+ 3
- 0
routers/repo/aisafety.go View File

@@ -95,6 +95,9 @@ func GetAiSafetyTask(ctx *context.Context) {
job, err = models.GetCloudbrainByIDWithDeleted(ID)
job.BenchmarkType = "安全评测"
job.BenchmarkTypeName = "Image Classification"
job.CanModify = cloudbrain.CanModifyJob(ctx, job)
job.CanDel = cloudbrain.CanDeleteJob(ctx, job)

ctx.JSON(200, job)
}



Loading…
Cancel
Save