Let the runner drop and count a row without an id, a title or a link, as ADR Plugins 3.8 has it, in one place for whole, paged and search reads: the count is stamped per target, logged, named on the board's row, and over 10% of the rows fails the read; the 28 readers hand every listing over instead of skipping it
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
38c31c830b
commit
911dfe8584
58 files changed
+479
-203
No files matched your search
@@ -117,9 +117,9 @@ def _query(ask: Ask, number: int) -> str:
|
||||
|
||||
def page(get: Get, slug: str, cursor: Any, ask: Ask) -> Page:
|
||||
"""One page of a search, newest first; the cursor is the page number.
|
||||
The next page follows a full page (counted before any item is dropped, so
|
||||
a dropped item does not pass for the end) while the 200-result ceiling is
|
||||
not reached."""
|
||||
The next page follows a full page (counted before the runner drops an
|
||||
item, so a dropped item does not pass for the end) while the 200-result
|
||||
ceiling is not reached."""
|
||||
number = int(cursor or 1)
|
||||
root = ET.fromstring(get(_query(ask, number)))
|
||||
channel = root.find("channel")
|
||||
@@ -143,8 +143,6 @@ def rows(decoded: Any, slug: str) -> list[Row]:
|
||||
out: list[Row] = []
|
||||
for item in decoded["items"]:
|
||||
link, full_title = item["link"], item["title"]
|
||||
if not full_title or not is_web_url(link):
|
||||
continue
|
||||
description = item["description"]
|
||||
h4 = _H4.search(description)
|
||||
title = _text(h4.group(1)) if h4 else full_title
|
||||
|
||||
Reference in new issue
Block a user