From a1c06cbb1b7ef0332ac813582eb157985ff273b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 19:01:46 +0200 Subject: [PATCH] Bump pycodestyle from 2.8.0 to 2.9.0 (#3320) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump pycodestyle from 2.8.0 to 2.9.0 Bumps [pycodestyle](https://github.com/PyCQA/pycodestyle) from 2.8.0 to 2.9.0. - [Release notes](https://github.com/PyCQA/pycodestyle/releases) - [Changelog](https://github.com/PyCQA/pycodestyle/blob/main/CHANGES.txt) - [Commits](https://github.com/PyCQA/pycodestyle/compare/2.8.0...2.9.0) --- updated-dependencies: - dependency-name: pycodestyle dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix mongodb Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Noémi Ványi --- requirements-dev.txt | 2 +- searx/engines/mongodb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 1c158d8f..82ef57f8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ mock==4.0.3 nose2[coverage_plugin]==0.12.0 cov-core==1.15.0 -pycodestyle==2.8.0 +pycodestyle==2.9.0 pylint==2.14.5 splinter==0.18.1 transifex-client==0.14.3; python_version < '3.10' diff --git a/searx/engines/mongodb.py b/searx/engines/mongodb.py index 4aeaa218..9d1fdc3d 100644 --- a/searx/engines/mongodb.py +++ b/searx/engines/mongodb.py @@ -54,7 +54,7 @@ def search(query, params): .limit(results_per_page) ret.append({'number_of_results': results.count()}) for r in results: - del(r['_id']) + del r['_id'] r = {str(k): str(v) for k, v in r.items()} r['template'] = result_template ret.append(r)