Browse Source

去掉打印。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3286/head
zouap 2 years ago
parent
commit
f1995878d7
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      models/repo_activity_custom.go

+ 5
- 6
models/repo_activity_custom.go View File

@@ -1,7 +1,6 @@
package models

import (
"encoding/json"
"fmt"
"sort"
"strings"
@@ -264,11 +263,11 @@ func GetAllUserKPIStats(startTime time.Time, endTime time.Time) (map[string]*git
log.Warn("get user kpi status err:"+repository.RepoPath(), err1.Error())
continue
}
if repository.Name == "yolov5" {
log.Info("repoName=" + repository.Name + " owner=" + repository.RepoPath())
authorsOneRepoJson, _ := json.Marshal(authorsOneRepo)
log.Info("authorsOneRepoJson=" + string(authorsOneRepoJson))
}
// if repository.Name == "yolov5" {
// log.Info("repoName=" + repository.Name + " owner=" + repository.RepoPath())
// authorsOneRepoJson, _ := json.Marshal(authorsOneRepo)
// log.Info("authorsOneRepoJson=" + string(authorsOneRepoJson))
// }
for key, value := range authorsOneRepo {
if _, ok := authors[key]; !ok {
authors[key] = &git.UserKPIStats{


Loading…
Cancel
Save