all funtionality

This commit is contained in:
fakebranden
2025-03-07 18:57:14 +00:00
parent 6782b9884e
commit e1da326317
5 changed files with 596 additions and 81 deletions

View File

@@ -57,15 +57,13 @@ def is_job_remote(job: dict, description: str) -> bool:
is_remote_in_attributes = any(
any(keyword in attr["label"].lower() for keyword in remote_keywords)
for attr in job["attributes"]
)
is_remote_in_description = any(
keyword in description.lower() for keyword in remote_keywords
)
is_remote_in_location = any(
keyword in job["location"]["formatted"]["long"].lower()
for keyword in remote_keywords
)
return is_remote_in_attributes or is_remote_in_description or is_remote_in_location
return is_remote_in_attributes or is_remote_in_location
def get_compensation_interval(interval: str) -> CompensationInterval: