fixed location

pull/231/head
Yariv Menachem 2024-12-18 18:01:54 +02:00
parent 5098ac22c2
commit d30d58d7f4
1 changed files with 6 additions and 2 deletions

View File

@ -84,8 +84,12 @@ class GoozaliMapper:
column = dict_column_name_to_column[goozali_column_name]
value = row.cellValuesByColumnId[column.id]
if (job_post_column == "location"):
# todo: fix it
return Location(text="tel aviv")
location = Location(text="Not Found")
if type(value) is list:
location_text = column.typeOptions.choices[value[0]].name
location.text = location_text
return location
if (job_post_column == "date_posted"):
return datetime.fromisoformat(value.replace("Z", "")).date()