Skip to content

Commit 8e62f69

Browse files
continue upgrading
1 parent a0d6f84 commit 8e62f69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def auth_required(self) -> bool:
2424
@model_validator(mode="after")
2525
@classmethod
2626
def _validate_auth_fields(cls, values):
27-
username = values["STORAGE_USERNAME"]
28-
password = values["STORAGE_PASSWORD"]
27+
username = values.STORAGE_USERNAME
28+
password = values.STORAGE_PASSWORD
2929
if (username is None) != (password is None):
3030
msg = f"Both {username=} and {password=} must be either set or unset!"
3131
raise ValueError(msg)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def dsn(self) -> str:
6363
password=self.POSTGRES_PASSWORD.get_secret_value(),
6464
host=self.POSTGRES_HOST,
6565
port=self.POSTGRES_PORT,
66-
path=f"/{self.POSTGRES_DB}",
66+
path=f"{self.POSTGRES_DB}",
6767
)
6868
)
6969
return dsn
@@ -77,7 +77,7 @@ def dsn_with_async_sqlalchemy(self) -> str:
7777
password=self.POSTGRES_PASSWORD.get_secret_value(),
7878
host=self.POSTGRES_HOST,
7979
port=self.POSTGRES_PORT,
80-
path=f"/{self.POSTGRES_DB}",
80+
path=f"{self.POSTGRES_DB}",
8181
)
8282
)
8383
return dsn

0 commit comments

Comments
 (0)