Skip to content

Commit

Permalink
bug fix credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jmargutt committed Dec 20, 2024
1 parent 1809345 commit 939263d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 939263d

Please sign in to comment.