diff options
author | 2022-02-01 20:21:10 +0100 | |
---|---|---|
committer | 2022-02-01 20:21:10 +0100 | |
commit | 11cbc008ee5f5bafb9ca24fbd8564202310fa6f4 (patch) | |
tree | 1ad27c68a0090b3321bb1c7b269b5742cf929f67 /pydis_site/apps/resources/views/resources.py | |
parent | Add type annotations for sort key method. (diff) |
Kaizen: Make jchrists wildest dreams come true
Co-authored-by: Johannes Christ <[email protected]>
Diffstat (limited to 'pydis_site/apps/resources/views/resources.py')
-rw-r--r-- | pydis_site/apps/resources/views/resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/resources/views/resources.py b/pydis_site/apps/resources/views/resources.py index 0e448ece..ac9e8355 100644 --- a/pydis_site/apps/resources/views/resources.py +++ b/pydis_site/apps/resources/views/resources.py @@ -111,7 +111,7 @@ class ResourceView(View): if resource_type: dashless_resource_type = resource_type.replace("-", " ") - if dashless_resource_type.title() not in self.filters['Type']['filters']: + if dashless_resource_type.title() not in self.filters["Type"]["filters"]: return HttpResponseNotFound() resource_type = resource_type.replace(" ", "-") |