We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb8fb46 + 3fc629e commit 2b60c28Copy full SHA for 2b60c28
flask_mongoengine/__init__.py
@@ -88,7 +88,7 @@ def _create_connection(conn_settings):
88
89
# Handle uri style connections
90
if "://" in conn.get('host', ''):
91
- uri_dict = uri_parser.parse_uri(conn_settings['host'])
+ uri_dict = uri_parser.parse_uri(conn['host'])
92
conn['db'] = uri_dict['database']
93
94
return mongoengine.connect(conn.pop('db', 'test'), **conn)
0 commit comments