Sort the by-hand list by the Watchlist's careers_opened_at and print the watch rating
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1a2689e08d
commit
161e89c955
3 files changed
+28
-20
No files matched your search
+3
-3
@@ -169,13 +169,13 @@ def known_from_search_only(company: Company, ever_boarded: set[str]) -> bool:
|
||||
|
||||
def by_hand(store: Store) -> list[Company]:
|
||||
"""The list checked by hand: companies with no board shown that are not
|
||||
known from a search only. Never checked first, then the longest ago; the
|
||||
name breaks a tie."""
|
||||
known from a search only. Never opened first, then the longest ago
|
||||
(`careers_opened_at`, the Watchlist's stamp); the name breaks a tie."""
|
||||
boards = store.company_boards()
|
||||
ever_boarded = {company_key(s.company) for s in store.subscriptions(source="ats")}
|
||||
rows = [c for c in store.companies()
|
||||
if c.key not in boards and not known_from_search_only(c, ever_boarded)]
|
||||
return sorted(rows, key=lambda c: (c.checked_at, c.name.casefold()))
|
||||
return sorted(rows, key=lambda c: (c.careers_opened_at, c.name.casefold()))
|
||||
|
||||
|
||||
class Conflict(ValueError):
|
||||
|
||||
Reference in new issue
Block a user