From fa3f313d959609fcb9ff555b6ecb498aac60ebfa Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Mon, 13 Nov 2023 19:03:21 -0600 Subject: [PATCH] edited supabase col name --- packages/googlecloud/functions/getanswer/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/googlecloud/functions/getanswer/main.py b/packages/googlecloud/functions/getanswer/main.py index af8941bf..a735f1e0 100644 --- a/packages/googlecloud/functions/getanswer/main.py +++ b/packages/googlecloud/functions/getanswer/main.py @@ -24,7 +24,7 @@ def update_supabase(response): # Assume you have a table named 'answers' with a column named 'answer' - response = supabase.table('cards').insert({'response': response}).execute() + response = supabase.table('cards').insert({'responses': response}).execute() if response.error: logging.error(f"Failed to update Supabase: {response.error}")