mirror of https://github.com/Bunsly/JobSpy
fixed another columns in job post
parent
acd3eb6e44
commit
327b13f82d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue