diff options
Diffstat (limited to 'pydis_site/apps')
| -rw-r--r-- | pydis_site/apps/resources/views/resources.py | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/pydis_site/apps/resources/views/resources.py b/pydis_site/apps/resources/views/resources.py index 5b6350de..087cdfb6 100644 --- a/pydis_site/apps/resources/views/resources.py +++ b/pydis_site/apps/resources/views/resources.py @@ -23,12 +23,15 @@ def resource_view(request: HttpRequest) -> HttpResponse:          )      } +    topics = sorted(RESOURCE_META_TAGS.get("topics")) +      return render(          request,          template_name="resources/resources.html",          context={              "checkboxOptions": checkbox_options, -            "topics": sorted(RESOURCE_META_TAGS.get("topics")), +            "topics_1": topics[:len(topics) // 2], +            "topics_2": topics[len(topics) // 2:],              "tag_types": sorted(RESOURCE_META_TAGS.get("type")),              "payment_tiers": sorted(RESOURCE_META_TAGS.get("payment_tiers")),              "complexities": sorted(RESOURCE_META_TAGS.get("complexity")),  |