mirror of
https://github.com/searx/searx
synced 2024-12-01 22:51:01 +01:00
[enh] ordering categories
This commit is contained in:
parent
9ea84b285b
commit
726a4e4dca
@ -45,7 +45,7 @@ opensearch_xml = '''<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
def render(template_name, **kwargs):
|
||||
global categories
|
||||
kwargs['categories'] = categories.keys()
|
||||
kwargs['categories'] = sorted(categories.keys())
|
||||
if not 'selected_categories' in kwargs:
|
||||
kwargs['selected_categories'] = []
|
||||
cookie_categories = request.cookies.get('categories', '').split(',')
|
||||
|
Loading…
Reference in New Issue
Block a user