mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Redirect to match play after finalizing alliance selection.
This commit is contained in:
@@ -254,7 +254,13 @@ func (web *Web) allianceSelectionFinalizeHandler(w http.ResponseWriter, r *http.
|
|||||||
// Signal displays of the bracket to update themselves.
|
// Signal displays of the bracket to update themselves.
|
||||||
web.arena.ScorePostedNotifier.Notify()
|
web.arena.ScorePostedNotifier.Notify()
|
||||||
|
|
||||||
http.Redirect(w, r, "/alliance_selection", 303)
|
// Load the first playoff match.
|
||||||
|
matches, err := web.arena.Database.GetMatchesByType("elimination")
|
||||||
|
if err == nil && len(matches) > 0 {
|
||||||
|
_ = web.arena.LoadMatch(&matches[0])
|
||||||
|
}
|
||||||
|
|
||||||
|
http.Redirect(w, r, "/match_play", 303)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Publishes the alliances to the web.
|
// Publishes the alliances to the web.
|
||||||
|
|||||||
Reference in New Issue
Block a user