diff --git a/app/routes.py b/app/routes.py index 5a158d5..fe7585b 100644 --- a/app/routes.py +++ b/app/routes.py @@ -1,6 +1,7 @@ from flask import Blueprint, render_template, redirect, url_for, flash, request, jsonify, send_from_directory, current_app from urllib.parse import urlparse from flask_login import login_user, logout_user, login_required, current_user +from sqlalchemy import text from app import db from app.models import User, Subscription, UserSettings, PaymentMethod, ExchangeRate, Webhook from app.forms import (LoginForm, SubscriptionForm, UserSettingsForm, @@ -17,7 +18,7 @@ def health_check(): """Health check endpoint for monitoring""" try: # Check database connectivity - db.session.execute('SELECT 1') + db.session.execute(text('SELECT 1')) # Check if currency converter is working from app.currency import currency_converter