Update DashboardLogger.py

Removed the requirement of using `CONFIGURATION_PATH`
This commit is contained in:
Donald Zou
2025-05-14 09:22:59 +08:00
parent 390cfa0cdf
commit d54e388b58

View File

@@ -7,7 +7,7 @@ from datetime import datetime
from sqlalchemy_utils import database_exists, create_database
class DashboardLogger:
def __init__(self, CONFIGURATION_PATH, DashboardConfig):
def __init__(self, DashboardConfig):
self.engine = db.create_engine(DashboardConfig.getConnectionString("wgdashboard_log"))
if not database_exists(self.engine.url):
create_database(self.engine.url)