Readers oracle to workday and the providers hand on the host's words; their word tables move to app/prep/hosts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a66aac95cf
commit
06eb929eaf
48 files changed
+460
-388
No files matched your search
@@ -28,7 +28,7 @@ from urllib.parse import urlencode
|
||||
|
||||
from desk.sources import strip_html
|
||||
|
||||
from ._shared import Get, Page, Row, is_web_url, only, parse_dt, remote_word
|
||||
from ._shared import Get, Page, Row, is_web_url, only, parse_dt, place
|
||||
from ._contract import Ask, Fields, Filters, Place, Reads
|
||||
|
||||
NAME = "jobindex"
|
||||
@@ -131,9 +131,7 @@ def rows(decoded: Any, slug: str) -> list[Row]:
|
||||
company = full_title[len(title) + 2:].strip()
|
||||
area = _AREA.search(description)
|
||||
town = _text(area.group(1)) if area else decoded["area"]
|
||||
remote = remote_word(f"{town} {title}")
|
||||
places: list[Place] = [{"text": town, "remote": True if remote == "remote" else None}] \
|
||||
if town else []
|
||||
places: list[Place] = [place(town)] if town else []
|
||||
out.append({
|
||||
"source_id": item["id"],
|
||||
"title": title or full_title,
|
||||
@@ -142,7 +140,6 @@ def rows(decoded: Any, slug: str) -> list[Row]:
|
||||
"places": places,
|
||||
"location": town,
|
||||
"country": "DK",
|
||||
"remote": remote,
|
||||
"posted": parse_dt(item["published"]),
|
||||
"teaser": " ".join(_text(p) for p in _PARAGRAPHS.findall(description)),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user