mirror of
https://github.com/searxng/searxng.git
synced 2026-05-09 02:43:52 +02:00
9c10b150963babb7f0b52081693a42b2e61eede9
I can't set `default_doi_resolver` in `settings.yml` if I'm using
`use_default_settings`. Searx seems to try to interpret all settings at root
level in `settings.yml` as dict, which is correct except for
`default_doi_resolver` which is at root level and a string::
File "/usr/lib/python3.9/site-packages/searx/settings_loader.py", line 125, in load_settings
update_settings(default_settings, user_settings)
File "/usr/lib/python3.9/site-packages/searx/settings_loader.py", line 61, in update_settings
update_dict(default_settings[k], v)
File "/usr/lib/python3.9/site-packages/searx/settings_loader.py", line 48, in update_dict
for k, v in user_dict.items():
AttributeError: 'str' object has no attribute 'items'
Signed-off-by: Markus Heiser <markus@darmarit.de>
Suggested-by: @0xhtml https://github.com/searx/searx/issues/2722#issuecomment-813391659
.. SPDX-License-Identifier: AGPL-3.0-or-later .. figure:: https://raw.githubusercontent.com/searx/searx/master/searx/static/themes/oscar/img/logo_searx_a.png :target: https://searx.github.io/searx/ :alt: searX :width: 100% :align: center ------- |searx install| |searx homepage| |searx wiki| |AGPL License| |Issues| |commits| |OpenCollective searx backers| |OpenCollective searx sponsors| Privacy-respecting, hackable `metasearch engine`_ / *pronunciation* **səːks**. .. _metasearch engine: https://en.wikipedia.org/wiki/Metasearch_engine .. |searx install| image:: https://img.shields.io/badge/-install-blue :target: https://searx.github.io/searx/admin/installation.html .. |searx homepage| image:: https://img.shields.io/badge/-homepage-blue :target: https://searx.github.io/searx .. |searx wiki| image:: https://img.shields.io/badge/-wiki-blue :target: https://github.com/searx/searx/wiki .. |AGPL License| image:: https://img.shields.io/badge/license-AGPL-blue.svg :target: https://github.com/searx/searx/blob/master/LICENSE .. |Issues| image:: https://img.shields.io/github/issues/searx/searx?color=yellow&label=issues :target: https://github.com/searx/searx/issues .. |PR| image:: https://img.shields.io/github/issues-pr-raw/searx/searx?color=yellow&label=PR :target: https://github.com/searx/searx/pulls .. |commits| image:: https://img.shields.io/github/commit-activity/y/searx/searx?color=yellow&label=commits :target: https://github.com/searx/searx/commits/master .. |OpenCollective searx backers| image:: https://opencollective.com/searx/backers/badge.svg :target: https://opencollective.com/searx#backer .. |OpenCollective searx sponsors| image:: https://opencollective.com/searx/sponsors/badge.svg :target: https://opencollective.com/searx#sponsor If you are looking for running instances, ready to use, then visit searx.space_. Otherwise jump to the user_, admin_ and developer_ handbooks you will find on our homepage_. .. _searx.space: https://searx.space .. _user: https://searx.github.io/searx/user .. _admin: https://searx.github.io/searx/admin .. _developer: https://searx.github.io/searx/dev .. _homepage: https://searx.github.io/searx contact: openhub_ // twitter_ // IRC: #searx @ freenode .. _openhub: https://www.openhub.net/p/searx .. _twitter: https://twitter.com/Searx_engine ------- |gluten free| .. |gluten free| image:: https://forthebadge.com/images/featured/featured-gluten-free.svg
Languages
Python
80.8%
Shell
6.4%
HTML
5.4%
Less
4.1%
TypeScript
2.9%
Other
0.3%