Say remote not asked on the Companies line, show a failing search on its row, forget a removed search's record, and mark a read that asked nothing as not closing

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-30 16:11:27 +02:00
1 parent 0ad47605fd
commit a63eed2e56
10 files changed
+66 -36

No files matched your search

+4 -1
View File
@@ -20,7 +20,7 @@ from urllib.parse import urlsplit
from app.config import Config
from app.models import HAND_REASONS, Company, Subscription, company_key
from app.storage import Store
from app.jobs.pull import FAILING, search_target
from app.jobs.pull import FAILING, SEARCH_FAILING, search_target
from plugins import readers
if TYPE_CHECKING:
@@ -436,6 +436,9 @@ def remove_search(store: Store, sub_id: int) -> tuple[Subscription, int]:
if sub is None or sub.source != "search":
raise KeyError(sub_id)
store.unsubscribe(sub_id)
# A record of the search failing would otherwise outlive it, as a
# board's would (`_forget_failing`).
store.state.pop(SEARCH_FAILING + sub.target, None)
closed = store.close_subscription(sub_id)
if closed:
store.rebuild_dupes()