Skip to content

Commit

Permalink
Replaced % with %% for alembic postgres connection URL (#97)
Browse files Browse the repository at this point in the history
Closes #96
  • Loading branch information
jcadam14 authored Jan 18, 2024
1 parent 9212ba0 commit e45b4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_revisions/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e45b4b7

Please sign in to comment.