From acbb075d13d55bd9e1c3c0f345a0e76617458307 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Fri, 31 Jan 2014 11:14:07 -0500 Subject: [PATCH] Fix the imports for the model db. --- application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application.py b/application.py index 63c1e2d8a..0b119f5d2 100644 --- a/application.py +++ b/application.py @@ -1,8 +1,8 @@ import logging from app import app as application +from data.model import db as model_db -import model logging.basicConfig(**application.config['LOGGING_CONFIG']) @@ -30,7 +30,7 @@ application.register_blueprint(webhooks, url_prefix='/webhooks') def close_db(exc): - db = model.db + db = model_db if not db.is_closed(): logger.debug('Disconnecting from database.') db.close()