From 18060ddc7521873ad14f12d329f2482df521313d Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 30 Aug 2022 10:48:21 +0100 Subject: [PATCH] Default to 4chan --- core/lib/opensearch.py | 2 +- core/templates/ui/drilldown/search_partial.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/lib/opensearch.py b/core/lib/opensearch.py index 57ec06d..9739f73 100644 --- a/core/lib/opensearch.py +++ b/core/lib/opensearch.py @@ -591,7 +591,7 @@ def query_results( if settings.RANDOMISATION: randomise_list(request.user, results_parsed) - # process_list(reqults) + # process_list(results) # IMPORTANT! - DO NOT PASS query_params to the user! context = { diff --git a/core/templates/ui/drilldown/search_partial.html b/core/templates/ui/drilldown/search_partial.html index 43a8f62..a7da8f5 100644 --- a/core/templates/ui/drilldown/search_partial.html +++ b/core/templates/ui/drilldown/search_partial.html @@ -114,15 +114,15 @@ {% endif %} - {% if params.source == '4ch' %} + {% if params.source == None %} + + {% elif params.source == '4ch' %} {% else %} {% endif %} - {% if params.source == None %} - - {% elif params.source == 'all' %} + {% if params.source == 'all' %} {% else %}