|
|
|
@@ -1,6 +1,7 @@ |
|
|
|
package models |
|
|
|
|
|
|
|
import ( |
|
|
|
"encoding/json" |
|
|
|
"fmt" |
|
|
|
"sort" |
|
|
|
"strings" |
|
|
|
@@ -263,7 +264,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.LowerName == "yolov5" { |
|
|
|
log.Info("repoName=" + repository.LowerName + " 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{ |
|
|
|
|