Take a Platsbanken region in the API and the CLI, and trust its and Teamtailor's posted date

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-29 16:23:19 +02:00
1 parent 43f0210b88
commit 0458c9c172
4 files changed
+12 -5

No files matched your search

+2 -1
View File
@@ -538,6 +538,7 @@ class SearchBody(BaseModel):
area: int = 0
country: str = ""
where: str = ""
region: str = ""
pages: Annotated[int, Field(ge=0, le=10)] = 0
@@ -545,7 +546,7 @@ def _params(body: SearchBody) -> dict[str, Any]:
try:
return jobs.sources.search_params(body.provider, body.q, area=body.area,
country=body.country, where=body.where,
pages=body.pages)
region=body.region, pages=body.pages)
except ValueError as exc:
raise HTTPException(422, str(exc)) from exc