mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 22:43:26 +00:00
fix: [#8] add password get_secret_value
This commit is contained in:
parent
ea758378e7
commit
9143343556
|
@ -25,7 +25,7 @@ class PostgresSettings(pydantic_settings.BaseSettings):
|
|||
def db_uri_async(self) -> str:
|
||||
db_uri: str = "postgresql+asyncpg://{pg_user}:{pg_pass}@{pg_host}/{pg_dbname}".format(
|
||||
pg_user=self.user,
|
||||
pg_pass=self.password,
|
||||
pg_pass=self.password.get_secret_value(),
|
||||
pg_host=self.host,
|
||||
pg_dbname=self.name,
|
||||
)
|
||||
|
@ -35,7 +35,7 @@ class PostgresSettings(pydantic_settings.BaseSettings):
|
|||
def db_uri_sync(self) -> str:
|
||||
db_uri: str = "postgresql://{pg_user}:{pg_pass}@{pg_host}/{pg_dbname}".format(
|
||||
pg_user=self.user,
|
||||
pg_pass=self.password,
|
||||
pg_pass=self.password.get_secret_value(),
|
||||
pg_host=self.host,
|
||||
pg_dbname=self.name,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user