diff --git a/bp/blog/ghost/ghost_sync.py b/bp/blog/ghost/ghost_sync.py index 4e458eb..669dd80 100644 --- a/bp/blog/ghost/ghost_sync.py +++ b/bp/blog/ghost/ghost_sync.py @@ -1021,6 +1021,8 @@ async def sync_single_post(sess: AsyncSession, ghost_id: str) -> None: async def sync_single_page(sess: AsyncSession, ghost_id: str) -> None: gp = await fetch_single_page_from_ghost(ghost_id) + if gp is not None: + gp["page"] = True # Ghost /pages/ endpoint may omit this flag if gp is None: res = await sess.execute(select(Post).where(Post.ghost_id == ghost_id)) obj = res.scalar_one_or_none()