From b138b3114f0768f6ae6cced9eeb4d5e132149bec Mon Sep 17 00:00:00 2001 From: Kharec Date: Tue, 11 Nov 2025 06:02:32 +0100 Subject: [PATCH] feat: use scalar instead of execute --- flado/blueprints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flado/blueprints.py b/flado/blueprints.py index 5e2117a..9d9c43f 100644 --- a/flado/blueprints.py +++ b/flado/blueprints.py @@ -31,7 +31,7 @@ def health_check() -> Response: """ try: # Test database connection - db.session.execute(text('SELECT 1')) + db.session.scalar(text('SELECT 1')) return jsonify({ 'status': 'healthy', 'database': 'connected' @@ -52,7 +52,8 @@ def index() -> str: search_query = request.args.get('search', '') # Validate filter type - valid_filters = ['all', 'today', 'upcoming', 'overdue', 'active', 'completed'] + valid_filters = ['all', 'today', 'upcoming', + 'overdue', 'active', 'completed'] if filter_type not in valid_filters: filter_type = 'all'