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:
WolfandClaude Opus 5.5 committed 2026-09-30 10:13:24 +02:00
1 parent ca80219bbb
commit 903b69b6d3
34 files changed
+290 -207

No files matched your search

+3 -3
View File
@@ -20,7 +20,7 @@ from typing import Any
from desk.sources import strip_html
from ._contract import Ask, Fields, Place, Reads
from ._shared import Get, Row, parse_dt, yearly_amount
from ._shared import Get, Row, add_place, parse_dt, yearly_amount
log = logging.getLogger(__name__)
@@ -100,8 +100,8 @@ def parse(body: bytes, slug: str) -> list[Row]:
continue
place = str(((entry.get("workLocation") or {}).get("label")) or "").strip()
places.setdefault(job_id, [])
if place and place not in (p["text"] for p in places[job_id]):
places[job_id].append(_place(place))
if place:
add_place(places[job_id], _place(place))
roles.setdefault(job_id, {
"source_id": job_id,
"title": title,