Browse Source

#3364

repo-square:fix bug
repo-square
chenyifan01 2 years ago
parent
commit
c0888e0483
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/ai_model_manage.go

+ 2
- 2
routers/repo/ai_model_manage.go View File

@@ -171,12 +171,12 @@ func updateStatus(id string, modelSize int64, status int, modelPath string, stat
if len(statusDesc) > 400 {
statusDesc = statusDesc[0:400]
}
m, _ := models.QueryModelById(id)
err := models.ModifyModelStatus(id, modelSize, status, modelPath, statusDesc)
if err != nil {
log.Info("update status error." + err.Error())
}
m, err := models.QueryModelById(id)
if err == nil {
if m != nil {
if modelSize > 0 && m.Size == 0 {
go repository.IncreaseRepoModelNum(m.RepoId)
}


Loading…
Cancel
Save