|
|
@@ -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{ |
|
|
|