From 1cf7e37ada69c6811b2ad61d4048e0e9bdb9dc22 Mon Sep 17 00:00:00 2001 From: Lory <147001347+LaurianeH-05@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:17:17 -0500 Subject: [PATCH] fix: prevent URL encoding in postgres placeholder display (#6438) --- mealie/core/settings/db_providers.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/mealie/core/settings/db_providers.py b/mealie/core/settings/db_providers.py index bd2c47aa4..437c81328 100644 --- a/mealie/core/settings/db_providers.py +++ b/mealie/core/settings/db_providers.py @@ -75,15 +75,7 @@ class PostgresProvider(AbstractDBProvider, BaseSettings): if self.POSTGRES_URL_OVERRIDE: return "Postgres Url Overridden" - return str( - PostgresDsn.build( - scheme="postgresql", - username="******", - password="******", - host=f"{self.POSTGRES_SERVER}:{self.POSTGRES_PORT}", - path=f"{self.POSTGRES_DB or ''}", - ) - ) + return f"postgresql://******:******@{self.POSTGRES_SERVER}:{self.POSTGRES_PORT}/{self.POSTGRES_DB or ''}" def db_provider_factory(provider_name: str, data_dir: Path, env_file: Path, env_encoding="utf-8") -> AbstractDBProvider: