Skip to content

Commit ca67a68

Browse files
committed
Update
1 parent 5732867 commit ca67a68

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/dashboard.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
if not os.path.isdir(DB_PATH):
3333
os.mkdir(DB_PATH)
3434
DASHBOARD_CONF = os.path.join(CONFIGURATION_PATH, 'wg-dashboard.ini')
35-
WG_CONF_PATH = None
3635
UPDATE = None
3736
app = Flask("WGDashboard", template_folder=os.path.abspath("./static/app/dist"))
3837
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 5206928
@@ -45,7 +44,7 @@ def __init__(self, app):
4544
def default(self, o):
4645
if callable(getattr(o, "toJson", None)):
4746
return o.toJson()
48-
return super().default(self, o)
47+
return super().default(self)
4948
app.json = CustomJsonEncoder(app)
5049

5150
'''
@@ -319,6 +318,7 @@ def __init__(self, name: str = None, data: dict = None, backup: dict = None, sta
319318
self.Name: str = ""
320319
self.PrivateKey: str = ""
321320
self.PublicKey: str = ""
321+
322322
self.ListenPort: str = ""
323323
self.Address: str = ""
324324
self.DNS: str = ""

src/gunicorn.conf.py

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import os.path
2-
32
import dashboard, configparser
43
from datetime import datetime
5-
import multiprocessing
6-
7-
84
global sqldb, cursor, DashboardConfig, WireguardConfigurations, AllPeerJobs, JobLogger
95
app_host, app_port = dashboard.gunicornConfig()
106
date = datetime.today().strftime('%Y_%m_%d_%H_%M_%S')

0 commit comments

Comments
 (0)