diff options
author | 2020-10-28 20:30:48 +0200 | |
---|---|---|
committer | 2020-10-28 20:30:48 +0200 | |
commit | 78c8a0a0afc479e681af13bd9bb2a1afed3489dc (patch) | |
tree | 1d43e1e81287a8c3009c2d557ae564502f775b45 /pydis_site/apps/events/views | |
parent | Use URL tag instead manually writing URL (diff) |
Use path converter for event page path argument
Diffstat (limited to 'pydis_site/apps/events/views')
-rw-r--r-- | pydis_site/apps/events/views/page.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pydis_site/apps/events/views/page.py b/pydis_site/apps/events/views/page.py index fe39a98c..8a99ce13 100644 --- a/pydis_site/apps/events/views/page.py +++ b/pydis_site/apps/events/views/page.py @@ -14,10 +14,6 @@ class PageView(View): def get(self, request: WSGIRequest, path: str) -> HttpResponse: """Render event page rendering based on path.""" - # We need to get rid from trailing slash when path have this - if path.endswith("/"): - path = path[:-1] - page_path = PAGES_PATH.joinpath(path) if page_path.exists() and page_path.is_dir(): page_path = page_path.joinpath("_index.html") |