Skip to content

Commit

Permalink
Merge pull request #435 from srinivas365/master
Browse files Browse the repository at this point in the history
FIXED: Configuration retrieve order
  • Loading branch information
insspb committed Jul 1, 2022
2 parents 46e5643 + 19c94c5 commit 2f7eae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_mongoengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ def init_app(self, app, config=None):

if not self.config:
# If no configs passed, use app.config.
config = app.config
self.config = app.config

# Obtain db connection(s)
connections = create_connections(config)
connections = create_connections(self.config)

# Store objects in application instance so that multiple apps do not
# end up accessing the same objects.
Expand Down

0 comments on commit 2f7eae4

Please sign in to comment.