diff --git a/api/core/formatters/csv/__init__.py b/api/core/formatters/csv/__init__.py index 61e0c93..d7a7f1e 100644 --- a/api/core/formatters/csv/__init__.py +++ b/api/core/formatters/csv/__init__.py @@ -20,7 +20,7 @@ def upload_to_google_sheet(csv_data: str): "https://www.googleapis.com/auth/drive", ] credentials = ServiceAccountCredentials.from_json_keyfile_name( - GSHEET_JSON_KEY_PATH, scope + "/app/client_secret.json", scope ) gc = gspread.authorize(credentials) sh = gc.open(GSHEET_NAME) diff --git a/settings.py b/settings.py index e4e46fe..ff17271 100644 --- a/settings.py +++ b/settings.py @@ -3,7 +3,6 @@ load_dotenv() # 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") # optional autha