fix file not found

pull/24/head
Cullen Watson 2023-08-28 11:19:11 -05:00
parent f81da7ced4
commit 639f45a48a
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class CSVFormatter:
"https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive",
] ]
credentials = ServiceAccountCredentials.from_json_keyfile_name( credentials = ServiceAccountCredentials.from_json_keyfile_name(
GSHEET_JSON_KEY_PATH, scope "/app/client_secret.json", scope
) )
gc = gspread.authorize(credentials) gc = gspread.authorize(credentials)
sh = gc.open(GSHEET_NAME) sh = gc.open(GSHEET_NAME)

View File

@ -3,7 +3,6 @@ import os
load_dotenv() load_dotenv()
# gsheets (template to copy at https://docs.google.com/spreadsheets/d/1mOgb-ZGZy_YIhnW9OCqIVvkFwiKFvhMBjNcbakW7BLo/edit?usp=sharing) # gsheets (template to copy at https://docs.google.com/spreadsheets/d/1mOgb-ZGZy_YIhnW9OCqIVvkFwiKFvhMBjNcbakW7BLo/edit?usp=sharing)
GSHEET_JSON_KEY_PATH = "client_secret.json"
GSHEET_NAME = os.environ.get("GSHEET_NAME", "JobSpy") GSHEET_NAME = os.environ.get("GSHEET_NAME", "JobSpy")
# optional autha # optional autha