summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-31 16:09:58 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-31 16:09:58 +0100
commit48dc019b94cd171cb69cd8d4cd4ac89d18900ec4 (patch)
treedc87bcc30347457fd92ed1b6f287b644aedd99f3 /searx/webapp.py
parentaf6e90009f3203dd7c4ce2ae7e4c789262ba1fa4 (diff)
[enh] displaying shortcuts at engines page
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 49580911d..347ee969d 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -250,8 +250,9 @@ def list_engines():
List of all supported engines.
"""
- global categories
- return render('engines.html', categs=categories.items())
+ return render('engines.html',
+ categs=categories.items(),
+ shortcuts={y:x for x,y in engine_shortcuts.items()})
@app.route('/preferences', methods=['GET', 'POST'])