| @@ -1,7 +1,6 @@ | |||||
| package models | package models | ||||
| import ( | import ( | ||||
| "encoding/json" | |||||
| "fmt" | "fmt" | ||||
| "sort" | "sort" | ||||
| "strings" | "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()) | log.Warn("get user kpi status err:"+repository.RepoPath(), err1.Error()) | ||||
| continue | 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 { | for key, value := range authorsOneRepo { | ||||
| if _, ok := authors[key]; !ok { | if _, ok := authors[key]; !ok { | ||||
| authors[key] = &git.UserKPIStats{ | authors[key] = &git.UserKPIStats{ | ||||