Responsive image

I’ve been racking my brain for a while on this, but I finaly figured it out. This might not be the preferred method to do it, but I at least found a way to do it that doesn’t override user options for using Searx.

In the file searx/ look for the line that is self.key_value_settings = {'categories': MultipleChoiceSetting(['general'], choices=categories + ['none']),

I found if you change the part that is ['general'] to your list of default categories, when a user searches for the first time these will be the default categories until they override it.

I changed mine to: self.key_value_settings = {'categories': MultipleChoiceSetting(['general', 'news', 'it', 'science'], choices=categories + ['none']),

Happy searching!


comments powered by Disqus

~ About me ~
I am a human who enjoys writing code.
~ Follow me ~
~ GitHub Recent Activity ~

Status updating...

~ Interesting Links ~