From 62275493416246089f7e2e04266d119ef50ca2ad Mon Sep 17 00:00:00 2001 From: karntrehan Date: Thu, 26 Sep 2024 14:01:40 +0530 Subject: [PATCH] Fix supabase url for posting user updates --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b622879..439170c 100644 --- a/main.py +++ b/main.py @@ -42,7 +42,7 @@ def __init__( super().__init__(title=title, timeout=timeout, custom_id=custom_id) async def post_data(self, table_name, data): - url = f"{os.getenv('SUPABASE_KEY')}/rest/v1/{table_name}", + url = f"{os.getenv('SUPABASE_URL')}/rest/v1/{table_name}", headers = { "apikey": f"{os.getenv('SUPABASE_KEY')}", "Authorization": f"Bearer {os.getenv('SUPABASE_KEY')}",