mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-12-15 10:36:16 +00:00
fix: dsn password
This commit is contained in:
@@ -27,7 +27,8 @@ class DBSettings(pydantic_settings.BaseSettings):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def dsn(self) -> str:
|
def dsn(self) -> str:
|
||||||
return f"{self.protocol}://{self.user}:{self.password}@{self.host}:{self.port}"
|
password = self.password.get_secret_value() if isinstance(self.password, pydantic.SecretStr) else self.password
|
||||||
|
return f"{self.protocol}://{self.user}:{password}@{self.host}:{self.port}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dsn_as_safe_url(self) -> str:
|
def dsn_as_safe_url(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user