Skip to content

Commit

Permalink
fix: change ents to entities after Document Parsing API change
Browse files Browse the repository at this point in the history
  • Loading branch information
the-forest-tree authored and the-forest-tree committed Nov 30, 2023
1 parent 5b9e6fd commit 906dfdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hrflow_connectors/connectors/hrflow/warehouse/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def enrich_job_with_parsing(hrflow_client: Hrflow, job: t.Dict) -> None:
if response["code"] >= 400:
raise JobParsingException("Failed to parse job", client_response=response)

entities, parsed_text = response["data"]["ents"], response["data"]["text"]
entities, parsed_text = response["data"]["entities"], response["data"]["text"]
for field in ["skills", "languages", "certifications", "courses", "tasks"]:
if job.get(field) is None:
job[field] = []
Expand Down

0 comments on commit 906dfdb

Please sign in to comment.