mirror of
https://github.com/searxng/searxng.git
synced 2024-12-19 15:56:28 +00:00
[enh] ordering categories
This commit is contained in:
parent
9ea84b285b
commit
726a4e4dca
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ opensearch_xml = '''<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
def render(template_name, **kwargs):
|
def render(template_name, **kwargs):
|
||||||
global categories
|
global categories
|
||||||
kwargs['categories'] = categories.keys()
|
kwargs['categories'] = sorted(categories.keys())
|
||||||
if not 'selected_categories' in kwargs:
|
if not 'selected_categories' in kwargs:
|
||||||
kwargs['selected_categories'] = []
|
kwargs['selected_categories'] = []
|
||||||
cookie_categories = request.cookies.get('categories', '').split(',')
|
cookie_categories = request.cookies.get('categories', '').split(',')
|
||||||
|
|
Loading…
Reference in a new issue