Fix services.get() → services.blog_page attribute access
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m13s

The service registry uses __getattr__, so .get() is interpreted
as looking up a service named "get". Use attribute access instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 09:57:04 +00:00
parent c2fe142039
commit baf9f1468d
4 changed files with 5 additions and 5 deletions

View File

@@ -146,7 +146,7 @@ def register(url_prefix, title):
content = await render_to_sx("blog-home-main",
html_content=post.get("html", ""),
sx_content=SxExpr(post.get("sx_content", "")) if post.get("sx_content") else None)
meta_data = services.get("blog_page").post_meta_data(post, ctx.get("base_title", ""))
meta_data = services.blog_page.post_meta_data(post, ctx.get("base_title", ""))
meta = await render_to_sx("blog-meta", **meta_data)
if not is_htmx_request():
@@ -181,7 +181,7 @@ def register(url_prefix, title):
link_label_content=SxExpr("(div)"),
child_id="blog-header-child", oob=oob)
data = await services.get("blog_page").index_data(g.s)
data = await services.blog_page.index_data(g.s)
# Render content, aside, and filter via .sx defcomps
content = await render_to_sx("blog-index-main-content", **data)