Files
jobboard/app/prep/hosts/platsbanken.py
T
WolfandClaude Opus 5.5 d04ceae7e0 Prep stage: host words stored raw, mapped centrally in app/prep after every pull
upsert_role stores the host's own words (roles.*_host), the place texts
unresolved when they change, and the company key unresolved on insert, and
marks the role prep_due. app.prep maps seniority, employment, remote and
country through the host tables in app/prep/hosts, resolves places and
company aliases, lists unknown words in `unmapped`, remaps every open role
when the tables' fingerprint changes, and runs rebuild_dupes, which moves
out of the pull's settle. Migration 22 adds the columns and the table and
fills the host words from raw. Cascade: pull, prep, embed, score, enrich,
prep, embed, score, extract, score, summarise. `app prep [unmapped]
[--remap]`, /api/prep/unmapped and a fold on the Sources page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 11:19:22 +02:00

13 lines
567 B
Python

"""Platsbanken's words, for prep."""
#: `workplace_model.label`, in Swedish; mostly empty. Only "Arbete på plats"
#: is in the fixtures; the others are JobTech's other labels as the site
#: writes them, and a label not here is listed as unmapped.
REMOTE: dict[str, str] = {
"arbete på plats": "onsite", "på plats": "onsite",
"hybridarbete": "hybrid", "hybrid": "hybrid", "delvis på distans": "hybrid",
"delvis distans": "hybrid",
"distansarbete": "remote", "arbete på distans": "remote", "helt på distans": "remote",
"distans": "remote",
}