Skip to content

Commit

Permalink
fix run on docker changing category and coach_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsandr0x committed Oct 10, 2021
1 parent 282eaed commit 8dc3eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions match/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def __init__(self, game, team_color, coach_name=None, category="3v3"):
super().__init__()
self.game = game
self.n_robots = CATEGORIES.get(category)
self.coach_name = coach_name
self.coach_name = os.environ.get('COACH_NAME', coach_name)
self.team_color = os.environ.get('TEAM_COLOR', team_color)
self.category = category
self.category = os.environ.get('CATEGORY', category)

self.opposite_team_color = 'yellow' if self.team_color == 'blue' else 'blue'

Expand Down

0 comments on commit 8dc3eba

Please sign in to comment.