Update dashboard.py

- Disabled `EmailSender` for now
This commit is contained in:
Donald Zou 2024-12-07 17:05:30 +08:00
parent 939dd0591e
commit 00acb04329

View File

@ -2031,7 +2031,7 @@ def sqlUpdate(statement: str, paramters: tuple = ()) -> sqlite3.Cursor:
DashboardConfig = DashboardConfig() DashboardConfig = DashboardConfig()
EmailSender = EmailSender() # EmailSender = EmailSender()
_, APP_PREFIX = DashboardConfig.GetConfig("Server", "app_prefix") _, APP_PREFIX = DashboardConfig.GetConfig("Server", "app_prefix")
cors = CORS(app, resources={rf"{APP_PREFIX}/api/*": { cors = CORS(app, resources={rf"{APP_PREFIX}/api/*": {
"origins": "*", "origins": "*",