summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-09-06 08:47:11 +0200
committerAlexandre Flament <alex@al-f.net>2021-09-07 19:14:36 +0200
commitfc20c561bf540d9b187a89a71730b6e3b0bee2da (patch)
tree64600325ef826757115b57e3369d346a0997a0d8 /searx/webapp.py
parenta3789b3bb44fd929a730518da678b7754a2c18cb (diff)
downloadsearxng-fc20c561bf540d9b187a89a71730b6e3b0bee2da.tar.gz
searxng-fc20c561bf540d9b187a89a71730b6e3b0bee2da.zip
[mod] oa_doi_rewrite plugin: get_doi_resolver: remove args parameter
doi_resolvers.get_value('preferences') already contains the value from request.args.get('doi_resolver')
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 6fcf7c464..cffde08a3 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1040,9 +1040,7 @@ def preferences():
themes = themes,
plugins = plugins,
doi_resolvers = settings['doi_resolvers'],
- current_doi_resolver = get_doi_resolver(
- request.args, request.preferences.get_value('doi_resolver')
- ),
+ current_doi_resolver = get_doi_resolver(request.preferences),
allowed_plugins = allowed_plugins,
theme = get_current_theme_name(),
preferences_url_params = request.preferences.get_as_url_params(),