Sfoglia il codice sorgente

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

Adam Tauber 6 anni fa
parent
commit
fb2dba4762
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      searx/query.py

+ 2
- 2
searx/query.py Vedi File

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