blacken
This commit is contained in:
+16
-12
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user