Skip to content

Commit 033a82b

Browse files
committed
Fix conflicts
1 parent 5e5f1cd commit 033a82b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

codeclash/agents/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ def get_agent(config: dict, game: CodeGame) -> Player:
1111
}.get(config["agent"])
1212
if agents is None:
1313
raise ValueError(f"Unknown agent type: {config['agent']}")
14-
environment = game.get_environment()
14+
environment = game.get_environment(f"{game.game_id}_{config['name']}")
1515
template_vars = {
16+
"game_name": game.name,
1617
"game_id": game.game_id,
1718
"rounds": game.rounds,
1819
"player_id": config["name"],

codeclash/agents/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def push(self):
4242

4343
for cmd in [
4444
f"git remote remove origin",
45-
f"git remote add origin https://x-access-token:{token}@github.com/{GH_ORG}/{self.format_vars['game_name']}.git",
45+
f"git remote add origin https://x-access-token:{token}@github.com/{GH_ORG}/{self.template_vars['game_name']}.git",
4646
f"git push origin {self.name}",
4747
]:
4848
assert_zero_exit_code(self.environment.execute(cmd))

0 commit comments

Comments
 (0)