Browse Source

首页改版新功能。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.11.3^2
zouap 3 years ago
parent
commit
55e3f673a4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      services/repository/repository.go

+ 2
- 1
services/repository/repository.go View File

@@ -119,8 +119,9 @@ func GetRecommendRepoFromPromote(filename string) ([]map[string]interface{}, err


//resultRepo := make([]*models.Repository, 0) //resultRepo := make([]*models.Repository, 0)
for _, repoName := range result { for _, repoName := range result {
log.Info("repoName=" + repoName)
tmpIndex1 := strings.Index(repoName, "##") tmpIndex1 := strings.Index(repoName, "##")
log.Info("repoName=" + repoName + " tmpIndex1=" + fmt.Sprint(tmpIndex1) + " len(repoName)=" + fmt.Sprint(len(repoName)))
repoLabel := "" repoLabel := ""
if tmpIndex1 != -1 { if tmpIndex1 != -1 {
repoName := strings.Trim(repoName[0:tmpIndex1], " ") repoName := strings.Trim(repoName[0:tmpIndex1], " ")


Loading…
Cancel
Save