ruff format

This commit is contained in:
Justin Visser 2026-03-02 20:11:10 +01:00
parent b47f825d54
commit e156de22c3
5 changed files with 28 additions and 34 deletions

View file

@ -8,9 +8,7 @@ DEFAULT_SITE_TITLE = "Untitled Site"
def get_site_title(db_path: Path, *, default: str = DEFAULT_SITE_TITLE) -> str:
conn = get_connection(db_path)
try:
row = conn.execute(
"SELECT value FROM site WHERE key = ?", ("title",)
).fetchone()
row = conn.execute("SELECT value FROM site WHERE key = ?", ("title",)).fetchone()
if row is None:
return default
return str(row["value"])