From 04609416c4284916da55773c78e645873987b2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=BA=E4=B9=8B?= <560397@gree.com.cn> Date: Tue, 7 Nov 2023 15:43:37 +0800 Subject: [PATCH] Update project --- application/libs/flask_elasticsearch/elasticsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libs/flask_elasticsearch/elasticsearch.py b/application/libs/flask_elasticsearch/elasticsearch.py index 600ac33..7be6ee4 100644 --- a/application/libs/flask_elasticsearch/elasticsearch.py +++ b/application/libs/flask_elasticsearch/elasticsearch.py @@ -42,7 +42,7 @@ class FlaskElasticsearch(BaseFlaskElasticsearch): # Use the new_style teardown_appcontext if it's available, # otherwise fall back to the request context - if hasattr(app, "teardown_appcontext"): + if hasattr(app, 'teardown_appcontext'): app.teardown_appcontext(self.teardown) else: app.teardown_request(self.teardown) -- GitLab