Skip to content

Commit

Permalink
fixed ruff formatting requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Maralai committed May 26, 2024
1 parent 6789e54 commit bf18539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queue_job/jobrunner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bf18539

Please sign in to comment.