summaryrefslogtreecommitdiff
path: root/searxng_extra
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-11-05 22:04:37 +0100
committerAlexandre Flament <alex@al-f.net>2022-11-05 22:04:37 +0100
commite473addaff3415e1892dc9e57da13d6378146d6f (patch)
treefeb429bd5341fde934a70e241c8cc3854110797d /searxng_extra
parentfc9986de0a21b01c1c8e342a9c4c8c6b96cc7ea2 (diff)
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
Diffstat (limited to 'searxng_extra')
-rwxr-xr-xsearxng_extra/update/update_firefox_version.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searxng_extra/update/update_firefox_version.py b/searxng_extra/update/update_firefox_version.py
index f70dc20e..384d0002 100755
--- a/searxng_extra/update/update_firefox_version.py
+++ b/searxng_extra/update/update_firefox_version.py
@@ -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