From 4b3c4eb3cf39949b2e3192d32c6f7162483fd606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 28 Dec 2023 12:25:12 +0100 Subject: [PATCH] fix url encoding in player names --- src/render_site.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render_site.py b/src/render_site.py index 67b8f88..d5c8577 100644 --- a/src/render_site.py +++ b/src/render_site.py @@ -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: