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:
@@ -673,7 +673,7 @@ async def _h_post_preview_content(slug=None, **kw):
|
||||
from shared.sx.helpers import render_to_sx
|
||||
from shared.sx.parser import SxExpr, serialize as sx_serialize
|
||||
|
||||
preview = await services.get("blog_page").preview_data(g.s)
|
||||
preview = await services.blog_page.preview_data(g.s)
|
||||
|
||||
sections: list[str] = []
|
||||
if preview.get("sx_pretty"):
|
||||
|
||||
Reference in New Issue
Block a user