This commit is contained in:
Mark Eaton
2026-01-24 01:18:42 -05:00
parent 3ea1c01771
commit 317af2142e
4 changed files with 143 additions and 21 deletions
+16 -12
View File
@@ -97,13 +97,15 @@ def get_saints_for_today() -> list[dict]:
if saint_name in NON_PERSON_ENTRIES:
continue
saints.append({
"name": saint_name,
"french_name": row["French Name"],
"notes": row["Notes"],
"wikipedia_url": get_wikipedia_url(saint_name),
"picture_path": get_saint_picture_path(saint_name),
})
saints.append(
{
"name": saint_name,
"french_name": row["French Name"],
"notes": row["Notes"],
"wikipedia_url": get_wikipedia_url(saint_name),
"picture_path": get_saint_picture_path(saint_name),
}
)
return saints
@@ -117,11 +119,13 @@ def format_mastodon_post(saint: dict) -> str:
f"{date_str}: the Feast of Saint {saint['name']}",
]
lines.extend([
saint["wikipedia_url"],
"",
"#saints #hagiography",
])
lines.extend(
[
saint["wikipedia_url"],
"",
"#saints #hagiography",
]
)
return "\n".join(lines)