mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-12 16:16:58 +00:00
Update DashboardLogger.py
Removed the requirement of using `CONFIGURATION_PATH`
This commit is contained in:
parent
964a6c2e3e
commit
6d4b5d4484
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user