mirror of https://github.com/Bunsly/JobSpy
fixed location empty on goozali
parent
5befc16ea8
commit
0bb64a1fc3
|
@ -206,6 +206,10 @@ class Location(BaseModel):
|
||||||
location_parts.append(country_name.upper())
|
location_parts.append(country_name.upper())
|
||||||
else:
|
else:
|
||||||
location_parts.append(country_name.title())
|
location_parts.append(country_name.title())
|
||||||
|
|
||||||
|
if (len(location_parts) == 0 and len(self.text) > 0):
|
||||||
|
return self.text
|
||||||
|
|
||||||
return ", ".join(location_parts)
|
return ", ".join(location_parts)
|
||||||
|
|
||||||
def model_dump(self):
|
def model_dump(self):
|
||||||
|
@ -254,7 +258,6 @@ class DescriptionFormat(Enum):
|
||||||
|
|
||||||
|
|
||||||
class JobPost(BaseModel):
|
class JobPost(BaseModel):
|
||||||
|
|
||||||
# def __init__(self, obj):
|
# def __init__(self, obj):
|
||||||
# super().__init__()
|
# super().__init__()
|
||||||
# for key, value in obj.items():
|
# for key, value in obj.items():
|
||||||
|
|
Loading…
Reference in New Issue