Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 4 years ago
parent
commit
51207b667f
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      models/ai_model_manage.go
  2. +0
    -1
      routers/repo/ai_model_manage.go

+ 1
- 1
models/ai_model_manage.go View File

@@ -63,7 +63,7 @@ func QueryModelById(id string) (*AiModelManage, error) {
Where("id='" + id + "'")
aiModelManageList := make([]*AiModelManage, 0)
err := sess.Find(&aiModelManageList)
if err != nil {
if err == nil {
if len(aiModelManageList) == 1 {
return aiModelManageList[0], nil
}


+ 0
- 1
routers/repo/ai_model_manage.go View File

@@ -156,7 +156,6 @@ func DeleteModelByID(id string) error {

func DownloadModel(ctx *context.Context) {
log.Info("download model start.")

}

func QueryModelByParameters(repoId int64, page int) ([]*models.AiModelManage, int64, error) {


Loading…
Cancel
Save