Renaming connect_database to connect_database_from_config and using in from_celery
This commit is contained in:
@@ -23,7 +23,7 @@ from pymongo import DESCENDING
|
||||
from mongokit import ObjectId
|
||||
|
||||
|
||||
def connect_database(app_config):
|
||||
def connect_database_from_config(app_config):
|
||||
"""Connect to the main database, take config from app_config"""
|
||||
port = app_config.get('db_port')
|
||||
if port:
|
||||
|
||||
Reference in New Issue
Block a user