fixed round return
This commit is contained in:
6
main.go
6
main.go
@@ -215,7 +215,8 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
|
|||||||
Score: [2]int{iMatch.ScoreTeamA, iMatch.ScoreTeamB},
|
Score: [2]int{iMatch.ScoreTeamA, iMatch.ScoreTeamB},
|
||||||
Duration: iMatch.Duration,
|
Duration: iMatch.Duration,
|
||||||
MatchResult: iMatch.MatchResult,
|
MatchResult: iMatch.MatchResult,
|
||||||
Rounds: iMatch.MaxRounds,
|
MaxRounds: iMatch.MaxRounds,
|
||||||
|
Rounds: iMatch.Rounds,
|
||||||
Parsed: iMatch.DemoParsed,
|
Parsed: iMatch.DemoParsed,
|
||||||
Stats: []*StatsResponse{},
|
Stats: []*StatsResponse{},
|
||||||
}
|
}
|
||||||
@@ -351,7 +352,8 @@ func getMatch(w http.ResponseWriter, r *http.Request) {
|
|||||||
Score: [2]int{tMatch.ScoreTeamA, tMatch.ScoreTeamB},
|
Score: [2]int{tMatch.ScoreTeamA, tMatch.ScoreTeamB},
|
||||||
Duration: tMatch.Duration,
|
Duration: tMatch.Duration,
|
||||||
MatchResult: tMatch.MatchResult,
|
MatchResult: tMatch.MatchResult,
|
||||||
Rounds: tMatch.MaxRounds,
|
MaxRounds: tMatch.MaxRounds,
|
||||||
|
Rounds: tMatch.Rounds,
|
||||||
Parsed: tMatch.DemoParsed,
|
Parsed: tMatch.DemoParsed,
|
||||||
Stats: []*StatsResponse{},
|
Stats: []*StatsResponse{},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user