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] column = dict_column_name_to_column[goozali_column_name]
value = row.cellValuesByColumnId[column.id] value = row.cellValuesByColumnId[column.id]
if (job_post_column == "location"): if (job_post_column == "location"):
# todo: fix it location = Location(text="Not Found")
return Location(text="tel aviv") 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"): if (job_post_column == "date_posted"):
return datetime.fromisoformat(value.replace("Z", "")).date() return datetime.fromisoformat(value.replace("Z", "")).date()