add replay_url to response if demo is _not_ expired
This commit is contained in:
2
main.go
2
main.go
@@ -601,7 +601,7 @@ func getMatch(w http.ResponseWriter, r *http.Request) {
|
|||||||
Stats: []*utils.StatsResponse{},
|
Stats: []*utils.StatsResponse{},
|
||||||
}
|
}
|
||||||
|
|
||||||
if tMatch.Date.Before(time.Now().AddDate(0, 0, -30)) {
|
if tMatch.Date.After(time.Now().AddDate(0, 0, -30)) {
|
||||||
mResponse.ReplayURL = tMatch.ReplayURL
|
mResponse.ReplayURL = tMatch.ReplayURL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user