From 74f3ac5c98be5a84f688802d520c604e36ba30c2 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 17 Jan 2021 15:01:05 -0500 Subject: [PATCH] fixed some home/away logic --- leagues.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leagues.py b/leagues.py index a1d06e2..4a57398 100644 --- a/leagues.py +++ b/leagues.py @@ -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():