Skip to content

Commit

Permalink
Added fields to match return for jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
krugergui committed Oct 30, 2023
1 parent b318513 commit fa37978
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/api/serializer_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def generate_match_output(match_percentages: dict, instance: Candidates | Jobs)
break

sent_ids.append(match.pk)

curr_match = {
"id": match.pk,
"full_match_score": match_percentages[match.pk]["full_match_score"],
Expand All @@ -95,6 +96,10 @@ def generate_match_output(match_percentages: dict, instance: Candidates | Jobs)

if not is_job:
curr_match["job_title"] = match.job_title
curr_match["job_type"] = match.job_type
curr_match["work_model"] = match.job_title
curr_match["start_date"] = match.start_date
curr_match["job_description"] = match.job_description
else:
curr_match["preferred_name"] = match.preferred_name
curr_match["about_me"] = match.about_me
Expand Down

0 comments on commit fa37978

Please sign in to comment.