diff --git a/db_revisions/env.py b/db_revisions/env.py index 984b617..5547e1f 100644 --- a/db_revisions/env.py +++ b/db_revisions/env.py @@ -30,7 +30,7 @@ INST_DB_HOST = os.environ.get("INST_DB_HOST") INST_DB_NAME = os.environ.get("INST_DB_NAME") INST_DB_SCHEMA = os.environ.get("INST_DB_SCHEMA") -INST_CONN = f"postgresql://{INST_DB_USER}:{parse.quote(INST_DB_PWD, safe='')}@{INST_DB_HOST}/{INST_DB_NAME}" +INST_CONN = f"postgresql://{INST_DB_USER}:{(parse.quote(INST_DB_PWD, safe='')).replace('%', '%%')}@{INST_DB_HOST}/{INST_DB_NAME}" config.set_main_option("sqlalchemy.url", INST_CONN) # end specific SBL configuration