瀏覽代碼

[fix] get doi_rewriters from settings - fixes #1245

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

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

@@ -855,7 +855,7 @@ def config():
855 855
                     'safe_search': settings['search']['safe_search'],
856 856
                     'default_theme': settings['ui']['default_theme'],
857 857
                     'version': VERSION_STRING,
858
-                    'doi_resolvers': [r for r in search['doi_resolvers']],
858
+                    'doi_resolvers': [r for r in settings['doi_resolvers']],
859 859
                     'default_doi_resolver': settings['default_doi_resolver'],
860 860
                     })
861 861