forked from Hanabi/hanabi-league
fix url encoding in player names
This commit is contained in:
parent
38530ee303
commit
4b3c4eb3cf
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ class PlayerEntry:
|
|||
|
||||
@property
|
||||
def player_name_encoded(self):
|
||||
return urllib.parse.quote_plus(self.player_name)
|
||||
return urllib.parse.quote(self.player_name)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
@ -659,7 +659,7 @@ def render_player_pages(env: jinja2.Environment, out_dir: Path):
|
|||
player_games=games_grouped_by_player.get(player_name, [])
|
||||
)
|
||||
|
||||
output_file = out_dir / 'player' / urllib.parse.quote_plus(player_name) / 'index.html'
|
||||
output_file = out_dir / 'player' / player_name / 'index.html'
|
||||
output_file.parent.mkdir(exist_ok=True, parents=True)
|
||||
|
||||
with open(output_file, 'w') as f:
|
||||
|
|
Loading…
Reference in a new issue