diff --git a/src/ai_hawk/job_manager.py b/src/ai_hawk/job_manager.py index a9be82a4..818ef7f5 100644 --- a/src/ai_hawk/job_manager.py +++ b/src/ai_hawk/job_manager.py @@ -5,6 +5,7 @@ from itertools import product from pathlib import Path from turtle import color +from datetime import datetime from inputimeout import inputimeout, TimeoutOccurred from selenium.common.exceptions import NoSuchElementException @@ -400,13 +401,15 @@ def write_to_file(self, job : Job, file_name, reason=None): logger.debug(f"Writing job application result to file: {file_name}") pdf_path = Path(job.resume_path).resolve() pdf_path = pdf_path.as_uri() + current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S") data = { "company": job.company, "job_title": job.title, "link": job.link, "job_recruiter": job.recruiter_link, "job_location": job.location, - "pdf_path": pdf_path + "pdf_path": pdf_path, + "time": current_time } if reason: