From 8e55d3aab0a008fce18404ce046d9e715a61c3bf Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Mon, 30 Oct 2023 08:36:46 +0100 Subject: [PATCH] annual-reports: fix db uri --- annual-reports/src/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annual-reports/src/api.py b/annual-reports/src/api.py index a9d7d34..570edec 100644 --- a/annual-reports/src/api.py +++ b/annual-reports/src/api.py @@ -200,7 +200,7 @@ def __init__( if not self.years: current_year = datetime.datetime.now().year self.years = list(range(2004, current_year + 1)) - database_url = f"postgresql://{self.db_name}:{self.db_password}@{self.db_host}:{self.db_port}/{self.db_name}" # noqa: E501 + database_url = f"postgresql://{self.db_user}:{self.db_password}@{self.db_host}:{self.db_port}/{self.db_name}" # noqa: E501 self.engine = create_engine(database_url) def create_tables(self):