fixed another columns in job post

pull/231/head
Yariv Menachem 2024-12-22 16:07:38 +02:00
parent acd3eb6e44
commit 327b13f82d
1 changed files with 6 additions and 0 deletions

View File

@ -90,10 +90,16 @@ class GoozaliMapper:
location.text = location_text
return location
if (job_post_column == "company_industry"):
if type(value) is list:
value = column.typeOptions.choices[value[0]].name
if (job_post_column == "date_posted"):
return datetime.fromisoformat(value.replace("Z", "")).date()
if (job_post_column == "field"):
value = column.typeOptions.choices[value].name
return str(value)
def map_goozali_response_to_job_post(self, row: GoozaliRow, dict_column_name_to_column: dict[str, GoozaliColumn]) -> JobPost: