Disallow spaces in generated names

This commit is contained in:
Fabian Dill
2020-04-18 21:46:57 +02:00
parent ea53fff43e
commit 8599c76647
4 changed files with 4 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ def parse_player_names(names, players, teams):
team = [n[:16] for n in names[:players]]
# where does the 16 character limit come from?
while len(team) != players:
team.append(f"Player {len(team) + 1}")
team.append(f"Player{len(team) + 1}")
ret.append(team)
names = names[players:]