Skip to content

Commit

Permalink
annual-reports: fix db uri
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Oct 30, 2023
1 parent 33639c8 commit 8e55d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annual-reports/src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8e55d3a

Please sign in to comment.