radio fixed
This commit is contained in:
parent
660bb63f04
commit
668135d669
2 changed files with 9 additions and 6 deletions
|
|
@ -145,16 +145,16 @@ class LinkedInJobManager:
|
|||
|
||||
|
||||
def write_to_file(self, job, file_name):
|
||||
pdf_path = Path(job.pdf_path).as_uri()
|
||||
data = {
|
||||
"company": job.company,
|
||||
"job_title": job.title,
|
||||
"link": job.link,
|
||||
"job_location": job.location,
|
||||
"pdf_path": job.pdf_path
|
||||
"pdf_path": pdf_path
|
||||
}
|
||||
file_path = self.output_file_directory / f"{file_name}.json"
|
||||
if not file_path.exists():
|
||||
job.pdf_path = file_path.as_posix()
|
||||
with open(file_path, 'w', encoding='utf-8') as f:
|
||||
json.dump([data], f, indent=4)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue