mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Add schedules for events having as few as six teams.
This commit is contained in:
@@ -75,8 +75,8 @@ func (web *Web) scheduleGeneratePostHandler(w http.ResponseWriter, r *http.Reque
|
||||
"generating the schedule.")
|
||||
return
|
||||
}
|
||||
if len(teams) < 18 {
|
||||
web.renderSchedule(w, r, fmt.Sprintf("There are only %d teams. There must be at least 18 teams to generate "+
|
||||
if len(teams) < 6 {
|
||||
web.renderSchedule(w, r, fmt.Sprintf("There are only %d teams. There must be at least 6 teams to generate "+
|
||||
"a schedule.", len(teams)))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user