aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-02-01 20:21:10 +0100
committerGravatar GitHub <[email protected]>2022-02-01 20:21:10 +0100
commit11cbc008ee5f5bafb9ca24fbd8564202310fa6f4 (patch)
tree1ad27c68a0090b3321bb1c7b269b5742cf929f67 /pydis_site/apps
parentAdd 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')
-rw-r--r--pydis_site/apps/resources/views/resources.py2
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(" ", "-")