mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Made match creation use auto-incrementing ID.
This commit is contained in:
@@ -57,7 +57,6 @@ func BuildRandomSchedule(teams []Team, scheduleBlocks []ScheduleBlock, matchType
|
||||
teamShuffle := rand.Perm(numTeams)
|
||||
matches := make([]Match, numMatches)
|
||||
for i, anonMatch := range anonSchedule {
|
||||
matches[i].Id = i + 1
|
||||
matches[i].Type = matchType
|
||||
matches[i].DisplayName = strconv.Itoa(i + 1)
|
||||
matches[i].Red1 = teams[teamShuffle[anonMatch[0]-1]].Id
|
||||
|
||||
Reference in New Issue
Block a user