Skip to content

Commit

Permalink
fix db url in matomo_api
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Oct 17, 2023
1 parent 6701c8e commit 44d9ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matomo-api/src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
raise ValueError("All the required attributes must be passed!")

def create_session(self):
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
engine = create_engine(database_url)
Session = sessionmaker(bind=engine)
session = Session()
Expand Down

0 comments on commit 44d9ea8

Please sign in to comment.