From bf185393c60a47bb00db090e115a96007541a6f3 Mon Sep 17 00:00:00 2001 From: Matt Harrison Date: Mon, 27 May 2024 07:56:20 +1000 Subject: [PATCH] fixed ruff formatting requirements --- queue_job/jobrunner/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queue_job/jobrunner/runner.py b/queue_job/jobrunner/runner.py index fd591b538..93ae3c206 100644 --- a/queue_job/jobrunner/runner.py +++ b/queue_job/jobrunner/runner.py @@ -199,7 +199,7 @@ def _connection_info_for(db_name): for p in ("host", "port", "user", "password"): cfg = os.environ.get( - "ODOO_QUEUE_JOB_JOBRUNNER_DB_%s" % p.upper() + f"ODOO_QUEUE_JOB_JOBRUNNER_DB_{p.upper()}" ) or queue_job_config.get("jobrunner_db_" + p) if cfg: @@ -411,7 +411,7 @@ def check_and_initialize_new_databases(self): self.channel_manager.notify(db_name, *job_data) _logger.info("queue job runner ready for new db %s", db_name) - # Check if `queue_job` is installed on any known database that didn't have it before + # Check if `queue_job` is installed on any known database that didn't have it for db_name in known_dbs: db = self.db_by_name[db_name] if not db.has_queue_job: