|
|
|
@@ -63,7 +63,7 @@ type UserBusinessAnalysis struct { |
|
|
|
} |
|
|
|
|
|
|
|
func CountData(wikiCountMap map[string]int) { |
|
|
|
log.Info("start to count data") |
|
|
|
log.Info("start to count other user info data") |
|
|
|
sess := x.NewSession() |
|
|
|
defer sess.Close() |
|
|
|
sess.Select("`user`.*").Table("user") |
|
|
|
@@ -82,7 +82,6 @@ func CountData(wikiCountMap map[string]int) { |
|
|
|
end_unix := endTime.Unix() |
|
|
|
|
|
|
|
CountDate := time.Date(currentTimeNow.Year(), currentTimeNow.Month(), currentTimeNow.Day(), 0, 1, 0, 0, currentTimeNow.Location()) |
|
|
|
//codeMergeCountMap := queryAction(start_unix,end_unix,11) |
|
|
|
|
|
|
|
CodeMergeCountMap := queryAction(start_unix, end_unix, 11) |
|
|
|
CommitCountMap := queryAction(start_unix, end_unix, 5) |
|
|
|
@@ -96,6 +95,8 @@ func CountData(wikiCountMap map[string]int) { |
|
|
|
CommitCodeSizeMap, err := GetAllUserKPIStats() |
|
|
|
if err != nil { |
|
|
|
log.Info("query commit code errr.") |
|
|
|
} else { |
|
|
|
log.Info("query commit code size, len=" + fmt.Sprint(len(CommitCodeSizeMap))) |
|
|
|
} |
|
|
|
CommitDatasetSizeMap := queryDatasetSize(start_unix, end_unix) |
|
|
|
SolveIssueCountMap := querySolveIssue(start_unix, end_unix) |
|
|
|
|