Commit 83b9970d authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent fab85008
......@@ -15,21 +15,13 @@ from typing import Any
from elasticsearch import Elasticsearch
from flask import Flask
from flask import _app_ctx_stack as stack_context
from flask_elasticsearch import FlaskElasticsearch as BaseFlaskElasticsearch
from loguru import logger
from application.common import ConfigHelper
# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
from flask import _app_ctx_stack as stack_context
except ImportError:
from flask import _request_ctx_stack as stack_context
class FlaskElasticsearch(BaseFlaskElasticsearch):
def __init__(self, app=None, **kwargs):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment