deleted round from db/response
This commit is contained in:
3
main.go
3
main.go
@@ -66,7 +66,6 @@ type MatchResponse struct {
|
||||
Duration int `json:"duration"`
|
||||
MatchResult int `json:"match_result"`
|
||||
MaxRounds int `json:"max_rounds,omitempty"`
|
||||
Rounds int `json:"rounds"`
|
||||
Parsed bool `json:"parsed"`
|
||||
Stats []*StatsResponse `json:"stats"`
|
||||
}
|
||||
@@ -216,7 +215,6 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
|
||||
Duration: iMatch.Duration,
|
||||
MatchResult: iMatch.MatchResult,
|
||||
MaxRounds: iMatch.MaxRounds,
|
||||
Rounds: iMatch.Rounds,
|
||||
Parsed: iMatch.DemoParsed,
|
||||
Stats: []*StatsResponse{},
|
||||
}
|
||||
@@ -353,7 +351,6 @@ func getMatch(w http.ResponseWriter, r *http.Request) {
|
||||
Duration: tMatch.Duration,
|
||||
MatchResult: tMatch.MatchResult,
|
||||
MaxRounds: tMatch.MaxRounds,
|
||||
Rounds: tMatch.Rounds,
|
||||
Parsed: tMatch.DemoParsed,
|
||||
Stats: []*StatsResponse{},
|
||||
}
|
||||
|
Reference in New Issue
Block a user