Custom match times

This commit is contained in:
Ken Schenke
2019-12-18 16:27:45 -06:00
parent ddc5ff6733
commit 76ca5a4dcd
8 changed files with 41 additions and 25 deletions

View File

@@ -48,6 +48,8 @@ func (web *Web) settingsPostHandler(w http.ResponseWriter, r *http.Request) {
}
eventSettings.NumElimAlliances = numAlliances
eventSettings.DurationAuto, _ = strconv.Atoi(r.PostFormValue("durationAuto"))
eventSettings.DurationTeleop, _ = strconv.Atoi(r.PostFormValue("durationTeleop"))
eventSettings.SelectionRound2Order = r.PostFormValue("selectionRound2Order")
eventSettings.SelectionRound3Order = r.PostFormValue("selectionRound3Order")
eventSettings.TBADownloadEnabled = r.PostFormValue("TBADownloadEnabled") == "on"