diff --git a/app.py b/app.py index 5379020..287008f 100644 --- a/app.py +++ b/app.py @@ -14,6 +14,7 @@ from utils import timeago from extensions import db, login_manager, csrf from utils.email_templates import create_default_templates from datetime import datetime +from sqlalchemy import text # Load environment variables load_dotenv() @@ -58,7 +59,7 @@ def create_app(): def health_check(): try: # Check database connection - db.session.execute('SELECT 1') + db.session.execute(text('SELECT 1')) db.session.commit() return jsonify({ 'status': 'healthy',