Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔为之
elp
Commits
83b9970d
Commit
83b9970d
authored
1 year ago
by
崔为之
💪🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project
parent
fab85008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
application/libs/flask_elasticsearch/elasticsearch.py
application/libs/flask_elasticsearch/elasticsearch.py
+1
-9
No files found.
application/libs/flask_elasticsearch/elasticsearch.py
View file @
83b9970d
...
...
@@ -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
):
"""
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment