Skip to content
This repository was archived by the owner on Feb 2, 2022. It is now read-only.

Commit 0f70bcf

Browse files
Slightly better team formatting
1 parent eab4289 commit 0f70bcf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gather/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ async def game_status(bot, channel, author, message):
2525

2626

2727
def format_team(players):
28-
return str({str(p) for p in players})
28+
return ', '.join(str(p) for p in players)
29+
2930

3031
async def add(bot, channel, author, message):
3132
"""

test/test_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def test_help(self):
1414

1515
def test_format_team(self):
1616
self.assertEqual(
17-
"{'TestPlayer', 'TestPlayer2'}",
18-
commands.format_team(['TestPlayer', 'TestPlayer2'])
17+
"TestPlayer, TestPlayer2, TestPlayer3",
18+
commands.format_team(['TestPlayer', 'TestPlayer2', 'TestPlayer3'])
1919
)
2020

2121

0 commit comments

Comments
 (0)