Sfoglia il codice sorgente

[fix] engine setting if no categories specified

Adam Tauber 8 anni fa
parent
commit
cf5c7d050a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py Vedi File

258
         if not load_default_categories:
258
         if not load_default_categories:
259
             if not query_categories:
259
             if not query_categories:
260
                 query_categories = list(set(engine['category']
260
                 query_categories = list(set(engine['category']
261
-                                            for engine in engines))
261
+                                            for engine in query_engines))
262
         else:
262
         else:
263
             # if no category is specified for this search,
263
             # if no category is specified for this search,
264
             # using user-defined default-configuration which
264
             # using user-defined default-configuration which