From ba7ccb828f819610c075299192cef69a8e28d9df Mon Sep 17 00:00:00 2001 From: xiongyao Date: Mon, 28 Apr 2025 22:01:32 +0800 Subject: [PATCH] style lint --- api/app_factory.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/app_factory.py b/api/app_factory.py index e5e5eed054..92665c62d9 100644 --- a/api/app_factory.py +++ b/api/app_factory.py @@ -31,8 +31,10 @@ def create_flask_app_with_configs() -> DifyApp: request_id = get_request_id() try: - if request.method.lower() == "post" and "application/json" in request.headers.get("content-type", - "").lower(): + if ( + request.method.lower() == "post" + and "application/json" in request.headers.get("content-type", "").lower() + ): logging.info( f"[before request]|request_id: {request_id}," f" method: {request.method}, url: {request.url}, request_data: {request.get_json()}"