Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlefs committed Jan 31, 2024
1 parent 0059064 commit 00efeb7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions qhana_plugin_runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ def create_app(test_config: Optional[Dict[str, Any]] = None):
pass # TODO some rewrite rules were dismissed as invalid!

# fix psycopg2 database urls of old docker compose files
if (db_url:=config.get("SQLALCHEMY_DATABASE_URI", "")).startswith("postgresql+psycopg2:"):
config["SQLALCHEMY_DATABASE_URI"] = db_url.replace("postgresql+psycopg2:", "postgresql+psycopg:", 1)
if (db_url := config.get("SQLALCHEMY_DATABASE_URI", "")).startswith(
"postgresql+psycopg2:"
):
config["SQLALCHEMY_DATABASE_URI"] = db_url.replace(
"postgresql+psycopg2:", "postgresql+psycopg:", 1
)

# End Loading config #################

Expand Down

0 comments on commit 00efeb7

Please sign in to comment.