tracking tickrate
This commit is contained in:
4
main.go
4
main.go
@@ -397,6 +397,7 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
|
||||
Parsed: iMatch.DemoParsed,
|
||||
VAC: iMatch.VacPresent,
|
||||
GameBan: iMatch.GamebanPresent,
|
||||
TickRate: iMatch.TickRate,
|
||||
}
|
||||
|
||||
tStats, err := iMatch.QueryStats().Modify(func(s *sql.Selector) {
|
||||
@@ -667,7 +668,6 @@ func getMatchChat(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
//resp := make([]*utils.ChatResponse, 0)
|
||||
resp := map[string][]*utils.ChatResponse{}
|
||||
|
||||
for _, stat := range tStats {
|
||||
@@ -846,6 +846,7 @@ func getMatches(w http.ResponseWriter, r *http.Request) {
|
||||
VAC: iMatch.VacPresent,
|
||||
GameBan: iMatch.GamebanPresent,
|
||||
AvgRank: avgRank,
|
||||
TickRate: iMatch.TickRate,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -906,6 +907,7 @@ func getMatch(w http.ResponseWriter, r *http.Request) {
|
||||
Parsed: tMatch.DemoParsed,
|
||||
Stats: []*utils.StatsResponse{},
|
||||
AvgRank: avgRank,
|
||||
TickRate: tMatch.TickRate,
|
||||
}
|
||||
|
||||
if tMatch.Date.After(time.Now().AddDate(0, 0, -1*conf.Csgowtfd.DemosExpire)) {
|
||||
|
||||
Reference in New Issue
Block a user