mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Add UI for explicit publishing match schedule to TBA
This commit is contained in:
@@ -108,10 +108,14 @@ func ScheduleRepublishPostHandler(w http.ResponseWriter, r *http.Request) {
|
||||
http.Error(w, "Failed to publish matches: "+err.Error(), 500)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
http.Error(w, "TBA publishing is not enabled", 500)
|
||||
return
|
||||
}
|
||||
|
||||
http.Redirect(w, r, "/setup/schedule", 302)
|
||||
}
|
||||
|
||||
// Saves the generated schedule to the database.
|
||||
func ScheduleSavePostHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if !UserIsAdmin(w, r) {
|
||||
|
||||
Reference in New Issue
Block a user