Skip to content

Commit 44557eb

Browse files
change var
1 parent 4dfad54 commit 44557eb

File tree

1 file changed

+4
-4
lines changed
  • packages/settings-library/src/settings_library

1 file changed

+4
-4
lines changed

packages/settings-library/src/settings_library/postgres.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ def _check_size(cls, v, info: ValidationInfo):
5656

5757
@cached_property
5858
def dsn(self) -> str:
59-
dsn = PostgresDsn.build( # pylint: disable=no-member
59+
url = PostgresDsn.build( # pylint: disable=no-member
6060
scheme="postgresql",
6161
username=self.POSTGRES_USER,
6262
password=self.POSTGRES_PASSWORD.get_secret_value(),
6363
host=self.POSTGRES_HOST,
6464
port=self.POSTGRES_PORT,
6565
path=f"{self.POSTGRES_DB}",
6666
)
67-
return f"{dsn}"
67+
return f"{url}"
6868

6969
@cached_property
7070
def dsn_with_async_sqlalchemy(self) -> str:
71-
dsn = PostgresDsn.build( # pylint: disable=no-member
71+
url = PostgresDsn.build( # pylint: disable=no-member
7272
scheme="postgresql+asyncpg",
7373
username=self.POSTGRES_USER,
7474
password=self.POSTGRES_PASSWORD.get_secret_value(),
7575
host=self.POSTGRES_HOST,
7676
port=self.POSTGRES_PORT,
7777
path=f"{self.POSTGRES_DB}",
7878
)
79-
return f"{dsn}"
79+
return f"{url}"
8080

8181
@cached_property
8282
def dsn_with_query(self) -> str:

0 commit comments

Comments
 (0)