| @@ -811,6 +811,7 @@ func getBonusMap() map[string]map[string]int { | |||||
| record, ok := bonusMap[userName] | record, ok := bonusMap[userName] | ||||
| if !ok { | if !ok { | ||||
| record = make(map[string]int) | record = make(map[string]int) | ||||
| bonusMap[userName] = record | |||||
| } | } | ||||
| record["times"] = getMapKeyStringValue("times", record) + getIntValue(aLine[3]) | record["times"] = getMapKeyStringValue("times", record) + getIntValue(aLine[3]) | ||||
| record["total_bonus"] = getMapKeyStringValue("total_bonus", record) + getIntValue(aLine[4]) | record["total_bonus"] = getMapKeyStringValue("total_bonus", record) + getIntValue(aLine[4]) | ||||
| @@ -2106,8 +2107,8 @@ func queryUserCreateRepo(start_unix int64, end_unix int64) (map[int64]int, map[s | |||||
| detailInfoMap[key] = getMapKeyStringValue(key, detailInfoMap) + int(repoRecord.CloneCnt) | detailInfoMap[key] = getMapKeyStringValue(key, detailInfoMap) + int(repoRecord.CloneCnt) | ||||
| key = fmt.Sprint(repoRecord.OwnerID) + "_most_download" | key = fmt.Sprint(repoRecord.OwnerID) + "_most_download" | ||||
| if int(repoRecord.GitCloneCnt) > getMapKeyStringValue(key, detailInfoMap) { | |||||
| detailInfoMap[key] = int(repoRecord.GitCloneCnt) | |||||
| if int(repoRecord.CloneCnt) > getMapKeyStringValue(key, detailInfoMap) { | |||||
| detailInfoMap[key] = int(repoRecord.CloneCnt) | |||||
| mostDownloadMap[repoRecord.OwnerID] = repoRecord.DisplayName() | mostDownloadMap[repoRecord.OwnerID] = repoRecord.DisplayName() | ||||
| } | } | ||||
| } | } | ||||