Docker workflow (#24)

This commit is contained in:
Cullen Watson
2023-08-28 12:15:13 -05:00
committed by GitHub
parent 9eb14a74a3
commit b9b7754703
6 changed files with 153 additions and 59 deletions

View File

@@ -20,7 +20,7 @@ class CSVFormatter:
"https://www.googleapis.com/auth/drive",
]
credentials = ServiceAccountCredentials.from_json_keyfile_name(
GSHEET_JSON_KEY_PATH, scope
"client_secret.json", scope
)
gc = gspread.authorize(credentials)
sh = gc.open(GSHEET_NAME)
@@ -43,6 +43,11 @@ class CSVFormatter:
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
return f"JobSpy_results_{timestamp}.csv"
@staticmethod
def generate_filename() -> str:
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
return f"JobSpy_results_{timestamp}.csv"
@staticmethod
def format(jobs: CommonResponse) -> StringIO:
"""