From 8681df6f02633f1f585787580e507a7b1623e7f3 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 2 Aug 2024 21:45:55 -0400 Subject: [PATCH] Seems like Gunicorn need global --- src/dashboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dashboard.py b/src/dashboard.py index cd9b943..9ed6e06 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -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