Add schedules for events having as few as six teams.

This commit is contained in:
Patrick Fairbank
2021-05-30 19:16:13 -07:00
parent 39eac5cb24
commit f5bd112e5a
171 changed files with 2473 additions and 7 deletions

View File

@@ -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
}