diff options
author | Alexandre Flament <alex@al-f.net> | 2022-01-23 11:37:57 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-02-20 22:58:51 +0100 |
commit | 56e34947a6368e6154064c52fa23d21ecda7ab4c (patch) | |
tree | bad1463a0c3056896cfacb205039586b85a2c04d /searx/preferences.py | |
parent | 36aee70c247fe347c69abb17ec3bdc31781204c6 (diff) | |
download | searxng-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.py | 11 |
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 } |