mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 01:06:58 +00:00
Update DashboardClients.py
This commit is contained in:
parent
afa578aa34
commit
b76d92bfeb
@ -17,7 +17,7 @@ class DashboardClients:
|
|||||||
self.logger = DashboardLogger()
|
self.logger = DashboardLogger()
|
||||||
self.engine = db.create_engine(ConnectionString("wgdashboard"))
|
self.engine = db.create_engine(ConnectionString("wgdashboard"))
|
||||||
self.metadata = db.MetaData()
|
self.metadata = db.MetaData()
|
||||||
self.DashboardClientsTOTP = DashboardClientsTOTP()
|
|
||||||
|
|
||||||
self.dashboardClientsTable = db.Table(
|
self.dashboardClientsTable = db.Table(
|
||||||
'DashboardClients', self.metadata,
|
'DashboardClients', self.metadata,
|
||||||
@ -45,6 +45,7 @@ class DashboardClients:
|
|||||||
self.metadata.create_all(self.engine)
|
self.metadata.create_all(self.engine)
|
||||||
self.Clients = []
|
self.Clients = []
|
||||||
self.__getClients()
|
self.__getClients()
|
||||||
|
self.DashboardClientsTOTP = DashboardClientsTOTP()
|
||||||
|
|
||||||
def __getClients(self):
|
def __getClients(self):
|
||||||
with self.engine.connect() as conn:
|
with self.engine.connect() as conn:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user