summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-23 11:37:57 +0100
committerAlexandre Flament <alex@al-f.net>2022-02-20 22:58:51 +0100
commit56e34947a6368e6154064c52fa23d21ecda7ab4c (patch)
treebad1463a0c3056896cfacb205039586b85a2c04d /searx/preferences.py
parent36aee70c247fe347c69abb17ec3bdc31781204c6 (diff)
downloadsearxng-56e34947a6368e6154064c52fa23d21ecda7ab4c.tar.gz
searxng-56e34947a6368e6154064c52fa23d21ecda7ab4c.zip
[mod] infinite_scroll as preference
* oscar theme: code from searx/plugins/infinite_scroll.py * simple theme: new implementation Co-authored-by: Markus Heiser <markus.heiser@darmarIT.de>
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index 570d0901b..e493dadc0 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -394,6 +394,17 @@ class Preferences:
'False': False
}
),
+ 'infinite_scroll': MapSetting(
+ settings['ui']['infinite_scroll'],
+ locked=is_locked('infinite_scroll'),
+ map={
+ '': settings['ui']['infinite_scroll'],
+ '0': False,
+ '1': True,
+ 'True': True,
+ 'False': False
+ }
+ ),
# fmt: on
}