diff options
author | Adam Tauber <asciimoo@gmail.com> | 2018-03-28 10:07:28 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2018-03-28 10:07:28 +0200 |
commit | fb2dba4762541394954b295d60cb255c2785bc65 (patch) | |
tree | d47b9ebf650da16ebc0e3eece8080b7232ef4b1b /searx/query.py | |
parent | 0cb55ddfde3a2687ca7a647ac95ffe484e12471b (diff) | |
download | searxng-fb2dba4762541394954b295d60cb255c2785bc65.tar.gz searxng-fb2dba4762541394954b295d60cb255c2785bc65.zip |
[fix] assign the correct variable in query.py - fixes #1253
Diffstat (limited to 'searx/query.py')
-rw-r--r-- | searx/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/query.py b/searx/query.py index f7543e3e1..82a60e64e 100644 --- a/searx/query.py +++ b/searx/query.py @@ -118,9 +118,9 @@ class RawTextQuery(object): elif prefix in engines: parse_next = True if prefix in engines: - for engine_category in engines[engine_name].categories: + for engine_category in engines[prefix].categories: self.engines.append({'category': engine_category, - 'name': engine_name, + 'name': prefix, 'from_bang': True}) # check if prefix is equal with categorie name |