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
@@ -44,7 +44,7 @@ from desk.sources import strip_html
|
||||
|
||||
from ._contract import Ask, Fields, Filters, Place, Reads, Row
|
||||
from ._countries import name_of
|
||||
from ._shared import Get, Page, is_web_url, only, parse_dt
|
||||
from ._shared import Get, Page, add_place, is_web_url, only, parse_dt, place
|
||||
|
||||
READS = Reads(
|
||||
scope="board", listing="paged", page_size=10, text="detail", complete="stated",
|
||||
@@ -131,8 +131,7 @@ def _places(locations: Any) -> list[Place]:
|
||||
if name and name not in names:
|
||||
names.append(name)
|
||||
text = ", ".join(names)
|
||||
if text and text not in (p["text"] for p in out):
|
||||
out.append({"text": text, "remote": True if "remote" in text.lower() else None})
|
||||
add_place(out, place(text))
|
||||
return out
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user