diff --git a/app.py b/app.py index d209100..58f7ddb 100644 --- a/app.py +++ b/app.py @@ -149,8 +149,8 @@ def get_data(): SCOPES = ["https://www.googleapis.com/auth/spreadsheets.readonly"] SAMPLE_SPREADSHEET_ID = os.getenv("GOOGLESHEETID") SAMPLE_RANGE_NAME = "Rotations!A:C" - sa_file = "google-service-account-hspatsea-ocean-viking.json" - creds = service_account.Credentials.from_service_account_file( + sa_file = json.loads(os.getenv("GOOGLESERVICEACCUNT")) + creds = service_account.Credentials.from_service_account_info( sa_file, scopes=SCOPES ) service = build("sheets", "v4", credentials=creds)