Skip to content

Commit f6e836c

Browse files
Merge pull request #37 from GitTimeraider/develop
healthcheck fix
2 parents e46bbf6 + 1b7c827 commit f6e836c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/routes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from flask import Blueprint, render_template, redirect, url_for, flash, request, jsonify, send_from_directory, current_app
22
from urllib.parse import urlparse
33
from flask_login import login_user, logout_user, login_required, current_user
4+
from sqlalchemy import text
45
from app import db
56
from app.models import User, Subscription, UserSettings, PaymentMethod, ExchangeRate, Webhook
67
from app.forms import (LoginForm, SubscriptionForm, UserSettingsForm,
@@ -17,7 +18,7 @@ def health_check():
1718
"""Health check endpoint for monitoring"""
1819
try:
1920
# Check database connectivity
20-
db.session.execute('SELECT 1')
21+
db.session.execute(text('SELECT 1'))
2122

2223
# Check if currency converter is working
2324
from app.currency import currency_converter

0 commit comments

Comments
 (0)