Browse Source

[fix] assign the correct variable in query.py - fixes #1253

Adam Tauber 6 years ago
parent
commit
fb2dba4762
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/query.py

+ 2
- 2
searx/query.py View File

118
                 elif prefix in engines:
118
                 elif prefix in engines:
119
                     parse_next = True
119
                     parse_next = True
120
                     if prefix in engines:
120
                     if prefix in engines:
121
-                        for engine_category in engines[engine_name].categories:
121
+                        for engine_category in engines[prefix].categories:
122
                             self.engines.append({'category': engine_category,
122
                             self.engines.append({'category': engine_category,
123
-                                                 'name': engine_name,
123
+                                                 'name': prefix,
124
                                                  'from_bang': True})
124
                                                  'from_bang': True})
125
 
125
 
126
                 # check if prefix is equal with categorie name
126
                 # check if prefix is equal with categorie name