diff --git a/manage.py b/manage.py index a858470..9dd39dc 100644 --- a/manage.py +++ b/manage.py @@ -145,7 +145,8 @@ def get_index_data_from_database(resource="all", backup="True"): save_key_value_buckets, ) import json - backup=json.loads(backup.lower()) + + backup = json.loads(backup.lower()) if resource != "all": sql_st = sqls_resources.get(resource) if not sql_st: diff --git a/omero_search_engine/validation/results_validator.py b/omero_search_engine/validation/results_validator.py index c9d8738..11a11c9 100644 --- a/omero_search_engine/validation/results_validator.py +++ b/omero_search_engine/validation/results_validator.py @@ -192,7 +192,9 @@ def get_results_db(self, operator=None): search_omero_app.logger.info("Getting results from postgres") if self.type == "buckets": if self.name: - sql = query_methods["available_values_for_key"].substitute(name=self.name) + sql = query_methods["available_values_for_key"].substitute( + name=self.name + ) conn = search_omero_app.config["database_connector"] self.postgres_results = conn.execute_query(sql) elif self.value: diff --git a/unit_tests/test_data.py b/unit_tests/test_data.py index 6ccf729..0a79144 100644 --- a/unit_tests/test_data.py +++ b/unit_tests/test_data.py @@ -83,7 +83,9 @@ ] } -contains_not_contains_queries = {"image": [["cell line", "hel"], ["gene symbol", "cep"]]} +contains_not_contains_queries = { + "image": [["cell line", "hel"], ["gene symbol", "cep"]] +} query_in = { "image": [