From 733d99a974c07f05322d9928c4d81929da2ff677 Mon Sep 17 00:00:00 2001 From: ElliottKasoar <45317199+ElliottKasoar@users.noreply.github.com> Date: Tue, 11 Jun 2024 08:20:04 +0100 Subject: [PATCH] Tidy for flake8 --- .flake8 | 2 +- abcd/backends/atoms_opensearch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 7db48f62..94f58d25 100644 --- a/.flake8 +++ b/.flake8 @@ -2,7 +2,7 @@ select = B,BLK,C,E,F,I,S,W max-complexity = 30 max-line-length = 88 -ignore = E203,W503 +ignore = E203,W503 # ignore conflicts with black application-import-names = abcd,tests import-order-style = google exclude = diff --git a/abcd/backends/atoms_opensearch.py b/abcd/backends/atoms_opensearch.py index 78af1b08..1c1f0c9c 100644 --- a/abcd/backends/atoms_opensearch.py +++ b/abcd/backends/atoms_opensearch.py @@ -886,7 +886,7 @@ def rename_property( query = self.parser(query) logger.info("rename: query=%s, old=%s, new=%s", query, name, new_name) - script_txt = f"if (!ctx._source.containsKey(params.new_name)) {{ " + script_txt = "if (!ctx._source.containsKey(params.new_name)) {{ " script_txt += ( f"ctx._source.{new_name} = ctx._source.{name};" " ctx._source.remove(params.name);"