From 44d9ea87d75f795a84eb2b37e6e7eb1e17100381 Mon Sep 17 00:00:00 2001 From: MJedr Date: Tue, 17 Oct 2023 15:47:50 +0200 Subject: [PATCH] fix db url in matomo_api --- matomo-api/src/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matomo-api/src/api.py b/matomo-api/src/api.py index ec562eb..9d310b9 100644 --- a/matomo-api/src/api.py +++ b/matomo-api/src/api.py @@ -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()