Handle the polymarket changes

This commit is contained in:
warproxxx
2025-04-17 17:39:58 -07:00
parent 5b5fa5a180
commit a1140c076f
5 changed files with 93 additions and 78 deletions
+5
View File
@@ -1,7 +1,9 @@
from google.oauth2.service_account import Credentials
import gspread
import os
from dotenv import load_dotenv
load_dotenv()
def get_spreadsheet():
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
@@ -12,5 +14,8 @@ def get_spreadsheet():
spreadsheet_url = os.getenv("SPREADSHEET_URL")
if not spreadsheet_url:
raise ValueError("SPREADSHEET_URL environment variable is not set")
spreadsheet = client.open_by_url(spreadsheet_url)
return spreadsheet