mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
fetch_firefox_version.py : compatible with Python 3 and minor fixes.
This commit is contained in:
@@ -54,8 +54,8 @@ def searx_useragent():
|
||||
suffix=settings['outgoing'].get('useragent_suffix', ''))
|
||||
|
||||
|
||||
def gen_useragent():
|
||||
return str(useragents['ua'].format(os=choice(useragents['os']), version=choice(useragents['versions'])))
|
||||
def gen_useragent(os=None):
|
||||
return str(useragents['ua'].format(os=os or choice(useragents['os']), version=choice(useragents['versions'])))
|
||||
|
||||
|
||||
def highlight_content(content, query):
|
||||
|
||||
Reference in New Issue
Block a user