aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/resources
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/resources')
-rw-r--r--pydis_site/apps/resources/views/resources.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/pydis_site/apps/resources/views/resources.py b/pydis_site/apps/resources/views/resources.py
index a08f1d15..5b3cccab 100644
--- a/pydis_site/apps/resources/views/resources.py
+++ b/pydis_site/apps/resources/views/resources.py
@@ -8,10 +8,6 @@ RESOURCE_META_TAGS = {k: set(v) for k, v in RESOURCE_TABLE.items()}
def _parse_checkbox_options(options: str) -> set[str]:
"""Split up the comma separated query parameters for checkbox options into a list."""
- if not options:
- return set()
- if options == '*':
- return {'*'}
return set(options.split(",")[:-1])
@@ -27,10 +23,6 @@ def resource_view(request: HttpRequest) -> HttpResponse:
)
}
- # This allows for an asterisk in the URL to be a wildcard for that selection
- checkbox_options = {k: (v if v != {'*'} else RESOURCE_META_TAGS[k])
- for k, v in checkbox_options.items()}
-
topics = sorted(RESOURCE_META_TAGS.get("topics"))
return render(