Place the 99 trails with no track from cited pages, and add the places they name to the registry
93 trails are placed in 101 more places by pages that name the trail in them; the other 6 are marked checked and in no place. Places the source outlines do not hold are left out. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2186ca8216
commit
73b13c3d48
101 files changed
+4192
-3
No files matched your search
@@ -1070,8 +1070,8 @@ def add_stated(root, rid, kind, slug, source_url, quote, today):
|
||||
def add_stated_many(root, rid, items, today):
|
||||
"""Place a trackless trail in every place of `items` from cited sources, with one
|
||||
history entry for the record. An item is {kind, slug, source, quote}; with
|
||||
"summary": True the quote is the sentence of the record's own summary and the source is
|
||||
the page the summary was taken from, and the history says so."""
|
||||
"summary": True the quote is the sentence of the record's own description and the source is
|
||||
the page that description was taken from, and the history says so."""
|
||||
if not items:
|
||||
raise ValueError("stated needs at least one place")
|
||||
for it in items:
|
||||
@@ -1108,7 +1108,7 @@ def add_stated_many(root, rid, items, today):
|
||||
groups.setdefault((it["source"], it["quote"], bool(it.get("summary"))), []).append(name)
|
||||
parts = []
|
||||
for (source, quote, summary), who in groups.items():
|
||||
lead = "The trail's own summary says" if summary else "The page says"
|
||||
lead = "The trail's own description says" if summary else "The page says"
|
||||
tail = f" ({', '.join(who)})" if len(groups) > 1 else ""
|
||||
parts.append(f'{lead}: "{quote}"{tail}')
|
||||
doc.append_history(_history_entry(
|
||||
|
||||
Reference in new issue
Block a user