Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1788/head
zouap 3 years ago
parent
commit
2befca7a7d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/home.go

+ 2
- 2
routers/home.go View File

@@ -575,8 +575,8 @@ func RecommendRepoFromPromote(ctx *context.Context) {
if tmpIndex == -1 {
log.Info("error repo name format.")
} else {
ownerName := repoName[0:tmpIndex]
repoName := repoName[tmpIndex+1:]
ownerName := strings.Trim(repoName[0:tmpIndex], " ")
repoName := strings.Trim(repoName[tmpIndex+1:], " ")
repo, err := models.GetRepositoryByOwnerAndName(ownerName, repoName)
if err == nil {
resultRepo[i] = repo


Loading…
Cancel
Save