Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 4 years ago
parent
commit
fa4a5f7fba
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/search.go

+ 2
- 2
routers/search.go View File

@@ -187,8 +187,8 @@ func makeRepoResult(sRes *elastic.SearchResult, Key string, OnlyReturnNum bool)
record["num_stars"] = recordSource["num_stars"] record["num_stars"] = recordSource["num_stars"]
record["num_forks"] = recordSource["num_forks"] record["num_forks"] = recordSource["num_forks"]


if record["topics"] != nil {
topicsStr := record["topics"].(string)
if recordSource["topics"] != nil {
topicsStr := recordSource["topics"].(string)
log.Info("topicsStr=" + topicsStr) log.Info("topicsStr=" + topicsStr)
if topicsStr != "null" { if topicsStr != "null" {
topicsStr = strings.Replace(topicsStr, "\"", "", -1) topicsStr = strings.Replace(topicsStr, "\"", "", -1)


Loading…
Cancel
Save