fixed round return

This commit is contained in:
2021-10-08 21:33:25 +02:00
parent d5e9246112
commit 1355dfad8d

View File

@@ -215,7 +215,8 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
Score: [2]int{iMatch.ScoreTeamA, iMatch.ScoreTeamB},
Duration: iMatch.Duration,
MatchResult: iMatch.MatchResult,
Rounds: iMatch.MaxRounds,
MaxRounds: iMatch.MaxRounds,
Rounds: iMatch.Rounds,
Parsed: iMatch.DemoParsed,
Stats: []*StatsResponse{},
}
@@ -351,7 +352,8 @@ func getMatch(w http.ResponseWriter, r *http.Request) {
Score: [2]int{tMatch.ScoreTeamA, tMatch.ScoreTeamB},
Duration: tMatch.Duration,
MatchResult: tMatch.MatchResult,
Rounds: tMatch.MaxRounds,
MaxRounds: tMatch.MaxRounds,
Rounds: tMatch.Rounds,
Parsed: tMatch.DemoParsed,
Stats: []*StatsResponse{},
}