mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-03 00:54:08 -05:00
fix: prevent URL encoding in postgres placeholder display (#6438)
This commit is contained in:
@@ -75,15 +75,7 @@ class PostgresProvider(AbstractDBProvider, BaseSettings):
|
|||||||
if self.POSTGRES_URL_OVERRIDE:
|
if self.POSTGRES_URL_OVERRIDE:
|
||||||
return "Postgres Url Overridden"
|
return "Postgres Url Overridden"
|
||||||
|
|
||||||
return str(
|
return f"postgresql://******:******@{self.POSTGRES_SERVER}:{self.POSTGRES_PORT}/{self.POSTGRES_DB or ''}"
|
||||||
PostgresDsn.build(
|
|
||||||
scheme="postgresql",
|
|
||||||
username="******",
|
|
||||||
password="******",
|
|
||||||
host=f"{self.POSTGRES_SERVER}:{self.POSTGRES_PORT}",
|
|
||||||
path=f"{self.POSTGRES_DB or ''}",
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def db_provider_factory(provider_name: str, data_dir: Path, env_file: Path, env_encoding="utf-8") -> AbstractDBProvider:
|
def db_provider_factory(provider_name: str, data_dir: Path, env_file: Path, env_encoding="utf-8") -> AbstractDBProvider:
|
||||||
|
|||||||
Reference in New Issue
Block a user