mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-01-07 23:11:50 +08:00
Seems like Gunicorn need global
This commit is contained in:
parent
ba081ee442
commit
8681df6f02
1 changed files with 1 additions and 0 deletions
|
@ -1838,6 +1838,7 @@ def gunicornConfig():
|
|||
_, app_port = DashboardConfig.GetConfig("Server", "app_port")
|
||||
return app_ip, app_port
|
||||
|
||||
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
|
||||
|
||||
sqldb = sqlite3.connect(os.path.join(CONFIGURATION_PATH, 'db', 'wgdashboard.db'), check_same_thread=False)
|
||||
sqldb.row_factory = sqlite3.Row
|
||||
|
|
Loading…
Reference in a new issue