浏览代码

[fix] proper engine init

Adam Tauber 8 年前
父节点
当前提交
ea034fafa9
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0
    3
      searx/engines/__init__.py

+ 0
- 3
searx/engines/__init__.py 查看文件

202
 
202
 
203
 
203
 
204
 def initialize_engines(engine_list):
204
 def initialize_engines(engine_list):
205
-    global categories, engines
206
-    engines = {}
207
-    categories = {'general': []}
208
     for engine_data in engine_list:
205
     for engine_data in engine_list:
209
         engine = load_engine(engine_data)
206
         engine = load_engine(engine_data)
210
         engines[engine.name] = engine
207
         engines[engine.name] = engine