瀏覽代碼

[fix] engine setting if no categories specified

Adam Tauber 8 年之前
父節點
當前提交
cf5c7d050a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py 查看文件

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