Share the readers' place, table-lookup and country helpers, unify the employment vocabulary, and list the enrich switch with the stages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca80219bbb
commit
903b69b6d3
34 files changed
+290
-207
No files matched your search
@@ -35,7 +35,7 @@ from desk.sources import strip_html
|
||||
|
||||
from ._contract import Ask, Fields, Filters, Place, Reads
|
||||
from ._countries import NAMES, code_of
|
||||
from ._shared import Get, Page, Row, only, parse_dt
|
||||
from ._shared import Get, Page, Row, add_place, country_if_single, only, parse_dt
|
||||
|
||||
NAME = "oracle"
|
||||
LABEL = "Oracle Recruiting Cloud"
|
||||
@@ -197,8 +197,7 @@ def rows(search: dict[str, Any], slug: str) -> list[Row]:
|
||||
_text(role.get("PrimaryLocationCountry"))),
|
||||
*((_text(s.get("Name")), _text(s.get("CountryCode")))
|
||||
for s in secondary)):
|
||||
if name and name not in (p["text"] for p in places):
|
||||
places.append({"text": name, "remote": {"remote": True, "hybrid": False,
|
||||
add_place(places, {"text": name, "remote": {"remote": True, "hybrid": False,
|
||||
"onsite": False}.get(remote or "")})
|
||||
if code:
|
||||
codes.add(code.upper())
|
||||
@@ -213,7 +212,7 @@ def rows(search: dict[str, Any], slug: str) -> list[Row]:
|
||||
or _text(role.get("Department")) or _text(role.get("Organization"))),
|
||||
"description": "",
|
||||
"teaser": _plain(role.get("ShortDescriptionStr")),
|
||||
"country": next(iter(codes)) if len(codes) == 1 else None,
|
||||
"country": country_if_single(codes),
|
||||
"remote": remote,
|
||||
"salary_text": "", # the resource states no pay
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user