Clear a company's by-hand reason when a board is attached to it

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-29 19:27:55 +02:00
1 parent 940151bdc5
commit 2c3bce99e3
3 files changed
+14 -4

No files matched your search

+4 -3
View File
@@ -46,8 +46,9 @@ def set_board(store: Store, key: str, board: str, *, name: str = "",
a company between openings is still one to follow. `check=False` skips the
fetch, for the seed, whose boards were read once when it was written.
The row's `ats` and `ats_slug` become the board's host and slug, and its
`careers_url` the board's page where it was empty or the old board's.
The row's `ats` and `ats_slug` become the board's host and slug, its
`careers_url` the board's page where it was empty or the old board's, and
its `hand_reason` empty, since a company that is read is not read by hand.
`fields` (domain, country, city, ...) fill only columns that are empty, so
nothing a person or the seed wrote is overwritten. Row and subscription
change in one transaction (`Store.set_company_board`), and replacing a
@@ -82,7 +83,7 @@ def set_board(store: Store, key: str, board: str, *, name: str = "",
writes["careers_url"] = careers_url(board)
else:
writes.setdefault("careers_url", careers_url(board))
writes.update(ats=host, ats_slug=slug)
writes.update(ats=host, ats_slug=slug, hand_reason="")
before = store.company_subscription(key)
_company, sub, closed = store.set_company_board(key, board, host=host, name=name,
fields=writes)
-1
View File
@@ -10,7 +10,6 @@ This is roledesk's own API, over the same store. Every refusal is
from __future__ import annotations
from typing import Annotated, Any, Literal
from urllib.parse import urlsplit
from fastapi import APIRouter, HTTPException, Query, Response
from pydantic import BaseModel, Field