Merge pull request #163 from Sakimori/indev

fixed some home/away logic
This commit is contained in:
Sakimori 2021-01-17 15:03:54 -05:00 committed by GitHub
commit e27354abe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ class league_structure(object):
matchups.append([team_b.name, team_a.name])
else:
matchups.append([team_a.name, team_b.name])
a_home != a_home
a_home = not a_home
for i in range(0, self.constraints["inter_div_games"]): #inter-division matchups
for subleague in self.league.keys():
@ -183,7 +183,7 @@ class league_structure(object):
matchups.append([team_b.name, team_a.name])
else:
matchups.append([team_a.name, team_b.name])
a_home != a_home
a_home = not a_home
for subleague in self.league.keys():