Fix services.get() → services.blog_page attribute access
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m13s
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:
@@ -13,7 +13,7 @@ VALID_VISIBILITY = frozenset({"private", "shared", "admin"})
|
||||
async def _render_snippets():
|
||||
"""Render snippets list via service data + .sx defcomp."""
|
||||
from shared.services.registry import services
|
||||
data = await services.get("blog_page").snippets_data(g.s)
|
||||
data = await services.blog_page.snippets_data(g.s)
|
||||
return await render_to_sx("blog-snippets-content", **data)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user