rsm-roguchi commited on
Commit
6806a2b
Β·
1 Parent(s): fd64a2e
Files changed (1) hide show
  1. server/home.py +4 -2
server/home.py CHANGED
@@ -41,12 +41,14 @@ def server(input, output, session):
41
 
42
  candidate_id = str(uuid.uuid4())
43
  filename = f"{candidate_id}.pdf"
44
- target_path = os.path.join(UPLOAD_DIR, 'data', job_id, 'resumes')
45
  os.makedirs(target_path, exist_ok=True)
46
 
47
  file_path = Path(target_path) / filename
48
  file_path.write_bytes(resume_bytes)
49
 
 
 
50
 
51
  candidate_data = {
52
  "candidate_id": candidate_id,
@@ -54,7 +56,7 @@ def server(input, output, session):
54
  "Resume File": filename,
55
  "Application ID": str(uuid.uuid4())
56
  }
57
-
58
  save_candidate_context(candidate_id, candidate_data)
59
 
60
  print(f"βœ… Uploaded {file_meta['name']} β†’ job_id: {job_id}")
 
41
 
42
  candidate_id = str(uuid.uuid4())
43
  filename = f"{candidate_id}.pdf"
44
+ target_path = os.path.join(UPLOAD_DIR, job_id, 'resumes')
45
  os.makedirs(target_path, exist_ok=True)
46
 
47
  file_path = Path(target_path) / filename
48
  file_path.write_bytes(resume_bytes)
49
 
50
+ print(f"πŸ“‚ Full path: {file_path.resolve()}")
51
+
52
 
53
  candidate_data = {
54
  "candidate_id": candidate_id,
 
56
  "Resume File": filename,
57
  "Application ID": str(uuid.uuid4())
58
  }
59
+
60
  save_candidate_context(candidate_id, candidate_data)
61
 
62
  print(f"βœ… Uploaded {file_meta['name']} β†’ job_id: {job_id}")