From ae0f237ae82d8f783187652fa9d3812aa4045be3 Mon Sep 17 00:00:00 2001 From: -LAN- Date: Thu, 2 Jan 2025 23:56:03 +0800 Subject: [PATCH] fix(app.py): if condition Signed-off-by: -LAN- --- api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app.py b/api/app.py index 5cdc88e11f2b53..9830a809042348 100644 --- a/api/app.py +++ b/api/app.py @@ -17,7 +17,7 @@ def is_db_command(): # It seems that JetBrains Python debugger does not work well with gevent, # so we need to disable gevent in debug mode. # If you are using debugpy and set GEVENT_SUPPORT=True, you can debug with gevent. - if (flask_debug := os.environ.get("FLASK_DEBUG", "0")) and flask_debug.lower() not in {"false", "0", "no"}: + if (flask_debug := os.environ.get("FLASK_DEBUG", "0")) and flask_debug.lower() in {"false", "0", "no"}: from gevent import monkey # type: ignore # gevent