From d4236b07575d7fe80dc038cf89db527e730de7fc Mon Sep 17 00:00:00 2001 From: Your Name <119736744+aborayan2022@users.noreply.github.com> Date: Tue, 31 Mar 2026 22:36:48 +0200 Subject: [PATCH] fix: Fix stripe_service postgres RealDictCursor row access --- backend/app/services/stripe_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/services/stripe_service.py b/backend/app/services/stripe_service.py index 3fcdbd6..a3ac584 100644 --- a/backend/app/services/stripe_service.py +++ b/backend/app/services/stripe_service.py @@ -58,12 +58,12 @@ def _ensure_stripe_columns(): "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = 'users')" ) row = cursor.fetchone() - if not row or not row[0]: + if not row or not row.get("exists"): return cursor.execute( "SELECT column_name FROM information_schema.columns WHERE table_name = 'users'" ) - cols = [row[0] for row in cursor.fetchall()] + cols = [row["column_name"] for row in cursor.fetchall()] else: table_exists = conn.execute( "SELECT name FROM sqlite_master WHERE type='table' AND name='users'"