deleted round from db/response

This commit is contained in:
2021-10-09 00:57:05 +02:00
parent 1355dfad8d
commit 15b273f052
11 changed files with 4 additions and 264 deletions

View File

@@ -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{},
}