fixed bug with fixture generation
This commit is contained in:
@@ -269,7 +269,7 @@ func playOtherTeams(team *Team, teams []*Team, round int) []*versus {
|
||||
matchups := make([]*versus, len(teams))
|
||||
for i, opponent := range teams {
|
||||
versus := &versus{}
|
||||
if i%2+round%2 == 0 {
|
||||
if (i+round)%2 == 0 {
|
||||
versus.homeTeam = team
|
||||
versus.awayTeam = opponent
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user