mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 13:49:26 +02:00
User agent: don't include the patch number in the Firefox version
The Firefox version in the user agent doesn't include the patch version: 106.0 not 106.0.2 Close #1914
This commit is contained in:
parent
fc9986de0a
commit
e473addaff
2 changed files with 4 additions and 6 deletions
|
@ -64,8 +64,11 @@ def fetch_firefox_last_versions():
|
|||
major_list = (major_last, major_last - 1)
|
||||
for version in versions:
|
||||
major_current = version.version[0]
|
||||
minor_current = version.version[1]
|
||||
if major_current in major_list:
|
||||
result.append(version.vstring)
|
||||
user_agent_version = f'{major_current}.{minor_current}'
|
||||
if user_agent_version not in result:
|
||||
result.append(user_agent_version)
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue