summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-10-15 06:22:44 +0000
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-15 14:29:10 +0200
commit2986681b31a60d67e0468affb257a52246220f11 (patch)
tree5fcb0b231b7ad9421a28324b07d68479b4e7d91b /searx/engines
parent9f48d5f84fbc7c48ebe9513cebf0d6e02049ca60 (diff)
downloadsearxng-2986681b31a60d67e0468affb257a52246220f11.tar.gz
searxng-2986681b31a60d67e0468affb257a52246220f11.zip
[upd] pypi: Bump pylint from 3.2.7 to 3.3.1
Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.2.7 to 3.3.1. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.2.7...v3.3.1) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/hackernews.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/engines/hackernews.py b/searx/engines/hackernews.py
index a9e29bf0a..d3ba47f65 100644
--- a/searx/engines/hackernews.py
+++ b/searx/engines/hackernews.py
@@ -57,7 +57,11 @@ def request(query, params):
if params['time_range']:
search_type = 'search_by_date'
- timestamp = (datetime.now() - relativedelta(**{f"{params['time_range']}s": 1})).timestamp()
+ timestamp = (
+ # pylint: disable=unexpected-keyword-arg
+ datetime.now()
+ - relativedelta(**{f"{params['time_range']}s": 1}) # type: ignore
+ ).timestamp()
query_params["numericFilters"] = f"created_at_i>{timestamp}"
params["url"] = f"{base_url}/{search_type}?{urlencode(query_params)}"