SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[enh] preferences redirection
asciimood2898b081871
diff --git a/searx/webapp.py b/searx/webapp.pyindex e06b985d1..b7e2a4674 100644--- a/searx/webapp.py+++ b/searx/webapp.py@@ -22,7 +22,7 @@ if __name__ == "__main__":from sys import pathpath.append(os.path.realpath(os.path.dirname(os.path.realpath(__file__))+'/../'))-from flask import Flask, request, render_template, url_for, Response, make_response+from flask import Flask, request, render_template, url_for, Response, make_response, redirectfrom searx.engines import search, categories, engines, get_engines_statsfrom searx import settingsimport json@@ -151,8 +151,7 @@ def preferences():continueselected_categories.append(category)if selected_categories:- template = render('preferences.html', selected_categories=selected_categories)- resp = make_response(template)+ resp = make_response(redirect('/'))resp.set_cookie('categories', ','.join(selected_categories))return respreturn render('preferences.html')