This commit is contained in:
2025-06-06 21:17:39 +02:00
parent fc05fda666
commit 7a8005c263
4 changed files with 28 additions and 39 deletions

11
app.py
View File

@@ -80,17 +80,6 @@ def create_app():
db.session.execute(text('SELECT 1'))
db.session.commit()
# Check if we can actually query a table
try:
User.query.first()
except Exception as e:
app.logger.error(f"Database query failed: {str(e)}")
return jsonify({
'status': 'unhealthy',
'error': f"Database query failed: {str(e)}",
'timestamp': datetime.utcnow().isoformat()
}), 500
return jsonify({
'status': 'healthy',
'database': 'connected',