File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/settings-library/src/settings_library Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments