summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-17 17:06:54 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-17 17:06:54 +0100
commit1db082a28738ff126a2f4d34777f2b6d6efc6d31 (patch)
tree297343daff43e4392b76d6f25a75c9a16e6dc8c0 /searx
parent8b3ca1112c77ab7d131c075530f0dc02c6029e7d (diff)
[enh][mod] search category order
Diffstat (limited to 'searx')
-rw-r--r--searx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index d6ec3a47b..15ab17d15 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -70,7 +70,8 @@ def get_base_url():
def render(template_name, **kwargs):
global categories
- kwargs['categories'] = sorted(categories.keys())
+ kwargs['categories'] = ['general']
+ kwargs['categories'].extend(x for x in sorted(categories.keys()) if x != 'general')
if not 'selected_categories' in kwargs:
kwargs['selected_categories'] = []
cookie_categories = request.cookies.get('categories', '').split(',')