From 639f45a48a91c1fe76a8a75455b083e1243de438 Mon Sep 17 00:00:00 2001
From: Cullen Watson <cullen@cullenwatson.com>
Date: Mon, 28 Aug 2023 11:19:11 -0500
Subject: [PATCH] fix file not found

---
 api/core/formatters/csv/__init__.py | 2 +-
 settings.py                         | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

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 @@ class CSVFormatter:
                 "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 @@ import os
 
 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