Skip to content
Snippets Groups Projects
Commit da3bbb3d authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Escape string interpolation characters in alembic db password. Probably fixes #35

parent a93a0891
Branches
Tags
No related merge requests found
......@@ -15,8 +15,7 @@ config = context.config
mxfb_config_path = context.get_x_argument(as_dictionary=True).get("config", "config.yaml")
mxfb_config = Config(mxfb_config_path, None, None)
mxfb_config.load()
config.set_main_option("sqlalchemy.url",
mxfb_config.get("appservice.database", "sqlite:///mautrix-facebook.db"))
config.set_main_option("sqlalchemy.url", mxfb_config["appservice.database"].replace("%", "%%"))
fileConfig(config.config_file_name)
target_metadata = Base.metadata
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment