Skip to content

Commit 9b8ef04

Browse files
Merge pull request #69 from heysaeid/refactor/ensure-postgresdsn-type
Refactor: Ensure correct type for PostgresDsn instantiation
2 parents 14f1e2a + a8a09b3 commit 9b8ef04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

archipy/configs/config_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ def build_connection_url(self) -> Self:
432432

433433
if all([self.USERNAME, self.HOST, self.PORT, self.DATABASE]):
434434
password_part = f":{self.PASSWORD}" if self.PASSWORD else ""
435-
self.POSTGRES_DSN = (
436-
f"{self.DRIVER_NAME}://{self.USERNAME}{password_part}@{self.HOST}:{self.PORT}/{self.DATABASE}"
435+
self.POSTGRES_DSN = PostgresDsn(
436+
url=f"{self.DRIVER_NAME}://{self.USERNAME}{password_part}@{self.HOST}:{self.PORT}/{self.DATABASE}",
437437
)
438438
return self
439439

0 commit comments

Comments
 (0)